WordPress.org

Ready to get started?Download WordPress

Forums

Resize at Upload Plus
"has_cap was called with a deprecated argument " patch (2 posts)

  1. Daniele
    Member
    Posted 2 years ago #

    I'm, using this plugin with WP 3.3.1 and it works great. But it fires a warning when you switch to debug mode in WP.
    The function 'add_option_page' on line 49 of resize-at-aupload-plus.php, contains a deprecated argument: the user level.

    Just substitute the third argument (8) with its corresponding capability 'administrator' and you are done!
    So line 49 becomes:

    add_options_page('Resize at Upload Plus','Resize at Upload Plus','administrator','resize-upload-plus','hz_uploadresize_options');

    Hope to see this patched in a future release.

    P.S.: Daniel, can you please specify the differences between the plus and the old version ('resize at upload') of this plugin? thanks!

    http://wordpress.org/extend/plugins/resize-at-upload-plus/

  2. mores
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Daniele,
    thanks for the info. I just got around to fixing this bug :)

    Will deploy the new version shortly.

    I forgot what the difference is, actually. resize-at-upload was not by me, and I needed extra features so the original coder allowed me to extend the capabilities.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic