Closed travisseitler closed 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).
8
edit_plugins
manage_options
Yes, I got the same thing. This notice will show when wp_debug is true
Thanks for PR.
_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
ormanage_options
(see http://codex.wordpress.org/Roles_and_Capabilities).