[wp-trac] [WordPress Trac] #15865: Make it easy to disable options / user settings
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 26 09:21:42 UTC 2011
#15865: Make it easy to disable options / user settings
-------------------------------------------------+-------------------------
Reporter: westi | Owner: westi
Type: enhancement | Status: new
Priority: normal | Milestone: Future
Component: Administration | Release
Severity: normal | Version:
Keywords: westi-likes has-patch needs-testing | Resolution:
-------------------------------------------------+-------------------------
Comment (by scribu):
Instead of {{{if ( count( $wp_settings_fields[$page] ) == 0 )}}}, you
should use empty(), which is faster.
Also, spaces are needed before and after the parameter list:
{{{function remove_settings_section($id, $page) {}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15865#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list