[wp-trac] [WordPress Trac] #17526: Allow themes and plugins to disable options in the admin

WordPress Trac wp-trac at lists.automattic.com
Fri May 20 20:19:50 UTC 2011


#17526: Allow themes and plugins to disable options in the admin
-------------------------+-----------------------------
 Reporter:  holizz       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 I frequently set options in functions.php by hooking 'pre_option_*', thus
 whatever the user does in the admin interface they can't change it.

 There should be a filter to make the option obviously disabled to the user
 (it should probably also set the disabled attribute on the form fields)
 and perhaps add a short message saying for instance "This option was
 changed by $plugin_name, visit $link to change it." or "This option has
 been set by the '$theme_name' theme. It cannot be changed."

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17526>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list