• Resolved jongleur1983

    (@jongleur1983)


    1st bug: frontend where a userphoto is included:

    Notice: load_plugin_textdomain was called with an argument that is deprecated since version 2.7 with no alternative available. in wp-includes/functions.php on line 3195

    fixed by replacing line 77 of user-photo.php:

    was:
    load_plugin_textdomain(‘user-photo’, PLUGINDIR . ‘/user-photo/localization’); #(thanks Pakus)

    changed to:
    load_plugin_textdomain(‘user-photo’, FALSE, dirname(plugin_basename(__FILE__)).’/localization/’); #(thanks Pakus)

    2nd bug, in backend, plugins page:
    Notice: has_cap wurde mit einem Parameter oder Argument aufgerufen, der seit Version 2.0 veraltet ist! Die Benutzung von user_level in Plugins und Themes ist veraltet. Nutze stattdessen das Abfragen von roles oder capabilities. in wp-includes/functions.php on line 3193

    fix included:
    – in function userphoto_add_page replaced the user level 8 with ‘edit_pages’
    code now:
    add_options_page(‘User Photo’, ‘User Photo’, ‘edit_pages’, __FILE__, ‘userphoto_options_page’);

    https://www.ads-software.com/plugins/user-photo/

  • The topic ‘Several bugs’ is closed to new replies.