[wp-trac] [WordPress Trac] #32396: Settings Reduction

WordPress Trac noreply at wordpress.org
Tue Sep 15 15:04:27 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-         |     Focuses:
  feedback make-flow                             |
-------------------------------------------------+-------------------------

Comment (by chriscct7):

 Replying to [comment:48 obenland]:
 > The check for removed option groups could be simplified to
 >
 > {{{#!php
 > <?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.

 I concur. I'll do that on the next pass

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32396#comment:50>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list