Make WordPress Core


Ignore:
Timestamp:
09/13/2012 05:28:57 PM (12 years ago)
Author:
nacin
Message:

Fold Privacy Settings into Reading Settings, moving blog_public (search engine/robots) to options-reading and removing options-privacy.

When blog_public only has two values (as judged by whether the blog_privacy_selector action is used), convert from radio buttons to a checkbox, and rename from 'Site Visibility' to a more specific 'Search Engine Visibility'.

The text and implementation may change a bit. see #16416.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r21812 r21838  
    16251625
    16261626    if ( 'misc' == $option_group ) {
    1627         _deprecated_argument( __FUNCTION__, '3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );
     1627        _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
    16281628        $option_group = 'general';
     1629    }
     1630
     1631    if ( 'privacy' == $option_group ) {
     1632        _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
     1633        $option_group = 'reading';
    16291634    }
    16301635
     
    16481653
    16491654    if ( 'misc' == $option_group ) {
    1650         _deprecated_argument( __FUNCTION__, '3.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );
     1655        _deprecated_argument( __FUNCTION__, '3.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
    16511656        $option_group = 'general';
     1657    }
     1658
     1659    if ( 'privacy' == $option_group ) {
     1660        _deprecated_argument( __FUNCTION__, '3.5', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
     1661        $option_group = 'reading';
    16521662    }
    16531663
Note: See TracChangeset for help on using the changeset viewer.