WordPress.org

Ready to get started?Download WordPress

Forums

Thumbnails for Backend
[resolved] remove warning when WP_DEBUG is active (3 posts)

  1. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    Hi Giorgio, I'm still enjoying this great plugin.

    I would like to suggest a very minor edit for the next version to prevent the following alert notice from appearing in admin when WP_DEBUG is set to true:

    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/sites/numeeja.com/public_html/wp-includes/functions.php on line 3551

    line 179 changed from

    add_options_page('Thumbnails for Backend', 'Thumbnails for Backend', 8, basename(__FILE__), array(&$this, 'admin_page') );

    to

    add_options_page('Thumbnails for Backend', 'Thumbnails for Backend', 'edit_posts', basename(__FILE__), array(&$this, 'admin_page') );

    http://wordpress.org/extend/plugins/thumbnailsforbackend/

  2. g100g
    Member
    Plugin Author

    Posted 2 years ago #

  3. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    That's great - thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic