• With the latest version of WordPress running (4.4.2) and the latest version of Easy SMTP – there are a number of warnings being thrown.

    This is due to the has_cap check inside of add_menu page passing in a deprecated value (10).

    I’m assuming that you’d like to check if the current user has the capabilities to manage_options.

    To resolve this issue, you’ll want to change line 34 on class.smtp_admin.php from

    add_menu_page('WP SMTP Options', 'WP SMTP', '10', dirname(plugin_basename(__FILE__)), array(&$this, 'twd_smtp_options_page'), '');

    to

    add_menu_page('WP SMTP Options', 'WP SMTP', 'manage_options', dirname(plugin_basename(__FILE__)), array(&$this, 'twd_smtp_options_page'), '');

    Note the change from ’10’ to ‘manage options’.

    I would have issued a PR but I couldn’t find any github repo with this plugin up. However I do see one for the older version that this was forked from, so I may issue a PR over there as well.

    Thanks,
    Evan

    https://wordpress.org/plugins/easy-smtp/

  • The topic ‘Warnings thrown’ is closed to new replies.