hiddentao / wp-flickr-embed

Insert Flickr images into your Wordpress posts using an interactive interface
http://wordpress.org/extend/plugins/wp-flickr-embed/
GNU General Public License v3.0
19 stars 12 forks source link

"has_cap was called with an argument that is deprecated since version 2.0!" #16

Closed travisseitler closed 9 years ago

travisseitler commented 9 years ago

_PHP Notice: hascap 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.

The notice above is caused by line 223 in wp-flickr-embed.php:

add_options_page(__('WP Flickr Embed', 'wp-flickr-embed'), __('WP Flickr Embed', 'wp-flickr-embed'), 8, $this->pagesDir.'/admin.php');

The 8 in there should be replaced with an equivalent WP capability, i.e. edit_plugins or manage_options (see http://codex.wordpress.org/Roles_and_Capabilities).

tychay commented 9 years ago

Yes, I got the same thing. This notice will show when wp_debug is true

hiddentao commented 9 years ago

Thanks for PR.