[wp-trac] [WordPress Trac] #11730: Should display a warning when processing a setting which is not registered

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 21 07:48:38 UTC 2010


#11730: Should display a warning when processing a setting which is not registered
---------------------------------+------------------------------------------
 Reporter:  westi                |        Owner:  westi   
     Type:  feature request      |       Status:  reopened
 Priority:  normal               |    Milestone:  3.0     
Component:  Plugins              |      Version:  3.0     
 Severity:  normal               |   Resolution:          
 Keywords:  multisite has-patch  |  
---------------------------------+------------------------------------------

Comment(by nacin):

 I've spent a while going over the original changesets, MU code, and other
 documentation on this. Unless I am misreading this, an option cannot be
 whitelisted while being on an 'options' option_page, unless the option was
 manually whitelisted without being properly registered.

 There are technically other ways to "whitelist" options, such as via the
 filter, but MU 2.7+ only checks for {{{'options' == $option_page}}}.
 Donncha wrote register_setting() and also the MU 2.7+ whitelist
 enforcement check, so I used his narrow implementation when I wrote
 [13785].

 The $unregistered check was added to the same branch of code as the
 original MU check, but I realized that was preventing the hidden
 options.php form from functioning. So I've moved it to a better location
 in [13789].

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11730#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list