I18N: Merge similar strings in _deprecated_argument() calls.
Add translator comments. Props ramiy, SergeyBiryukov. Fixes #39020. Built from https://develop.svn.wordpress.org/trunk@40028 git-svn-id: http://core.svn.wordpress.org/trunk@39965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1207,12 +1207,22 @@ function add_settings_section($id, $title, $callback, $page) {
|
||||
global $wp_settings_sections;
|
||||
|
||||
if ( 'misc' == $page ) {
|
||||
_deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) );
|
||||
_deprecated_argument( __FUNCTION__, '3.0.0',
|
||||
/* translators: %s: misc */
|
||||
sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
|
||||
'misc'
|
||||
)
|
||||
);
|
||||
$page = 'general';
|
||||
}
|
||||
|
||||
if ( 'privacy' == $page ) {
|
||||
_deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) );
|
||||
_deprecated_argument( __FUNCTION__, '3.5.0',
|
||||
/* translators: %s: privacy */
|
||||
sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
|
||||
'privacy'
|
||||
)
|
||||
);
|
||||
$page = 'reading';
|
||||
}
|
||||
|
||||
@@ -1258,12 +1268,22 @@ function add_settings_field($id, $title, $callback, $page, $section = 'default',
|
||||
global $wp_settings_fields;
|
||||
|
||||
if ( 'misc' == $page ) {
|
||||
_deprecated_argument( __FUNCTION__, '3.0.0', __( 'The miscellaneous options group has been removed. Use another settings group.' ) );
|
||||
_deprecated_argument( __FUNCTION__, '3.0.0',
|
||||
/* translators: %s: misc */
|
||||
sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
|
||||
'misc'
|
||||
)
|
||||
);
|
||||
$page = 'general';
|
||||
}
|
||||
|
||||
if ( 'privacy' == $page ) {
|
||||
_deprecated_argument( __FUNCTION__, '3.5.0', __( 'The privacy options group has been removed. Use another settings group.' ) );
|
||||
_deprecated_argument( __FUNCTION__, '3.5.0',
|
||||
/* translators: %s: privacy */
|
||||
sprintf( __( 'The "%s" options group has been removed. Use another settings group.' ),
|
||||
'privacy'
|
||||
)
|
||||
);
|
||||
$page = 'reading';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user