[wp-trac] [WordPress Trac] #14365: Admin custom option screen not saved unless user manage_options capability
WordPress Trac
wp-trac at lists.automattic.com
Mon May 9 21:20:11 UTC 2011
#14365: Admin custom option screen not saved unless user manage_options capability
----------------------------+------------------
Reporter: markauk | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.2
Component: Administration | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------
Changes (by nacin):
* keywords: needs-patch => has-patch
* milestone: Future Release => 3.2
Comment:
Attached patch implements a filter called
"option_page_capability_{$option_page}", which can be used to tweak the
capability required when using the settings API. The filter is untouched
if you're not using the whitelist.
It's not pretty, but this should suffice until we rework the settings API,
and would not be difficult to maintain backwards compatibility.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14365#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list