[wp-trac] [WordPress Trac] #16439: When a plugins needs updating, the core code calls "has_cap" in a deprecated way
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 2 02:29:45 UTC 2011
#16439: When a plugins needs updating, the core code calls "has_cap" in a
deprecated way
-------------------------------------------+------------------------------
Reporter: jltallon | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has_cap, plugin_update_detect |
-------------------------------------------+------------------------------
Comment (by SergeyBiryukov):
The problem is in the plugin itself:
{{{
add_options_page('Better Delete Revision',
'Better Delete Revision',
8,
basename(__FILE__),
'my_options_bdelete_revision');
}}}
It should be `'manage_options'` instead of 8.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16439#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list