Support » Plugin: Resize at Upload Plus » [Plugin: Resize at Upload Plus] "has_cap was called with a deprecated argument " patch

  • 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/

Viewing 1 replies (of 1 total)
  • Plugin Author mores

    (@mores)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Resize at Upload Plus] "has_cap was called with a deprecated argument " patch’ is closed to new replies.