[wp-trac] [WordPress Trac] #32396: Settings Reduction
WordPress Trac
noreply at wordpress.org
Tue Sep 15 13:36:08 UTC 2015
#32396: Settings Reduction
--------------------------------------------------+------------------------
Reporter: chriscct7 | Owner: chriscct7
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.4
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing dev-feedback | Focuses:
--------------------------------------------------+------------------------
Comment (by obenland):
The check for removed option groups could be simplified to
{{{#!php
if ( in_array( $page, array( 'writing', '...' ) ) {
_deprecated_argument( __FUNCTION__, '4.4', sprintf( __( 'The "%s"
options group has been removed. Use another settings group.' ), $page ) );
$page = 'general';
}
}}}
We should probably also take advantage of the opportunity and properly
format the code that we move over.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32396#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list