WordPress.org

Plugin Directory

Changeset 1780693


Ignore:
Timestamp:
12/04/17 11:42:05 (7 weeks ago)
Author:
bastho
Message:

Fix warning: deprecated function has_cap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • eelv-newsletter/trunk/lettreinfo.php

    r1780684 r1780693  
    21712171     */ 
    21722172    function add_alert() { 
    2173         $cu = wp_get_current_user(); 
    2174         if ($cu->has_cap('manage_options') && get_option( 'newsletter_options_version')!=$this->eelv_newsletter_options_version && !is_network_admin()) { 
     2173        if ( current_user_can('manage_options') && get_option( 'newsletter_options_version')!=$this->eelv_newsletter_options_version && !is_network_admin()) { 
    21752174        ?> 
    21762175        <div class="updated"><p><a href="edit.php?post_type=newsletter&page=settings_page"> 
Note: See TracChangeset for help on using the changeset viewer.