Don't use `<code>` in translation strings in `wp-admin/options.php`.

Props ramiy, wonderboymusic.
Fixes #31861.

git-svn-id: https://develop.svn.wordpress.org/trunk@34315 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2015-09-18 20:42:20 +00:00
parent f5eacb71d6
commit 7eb0317968
1 changed files with 9 additions and 2 deletions

View File

@ -194,8 +194,15 @@ if ( 'update' == $action ) {
if ( $options ) {
foreach ( $options as $option ) {
if ( $unregistered )
_deprecated_argument( 'options.php', '2.7', sprintf( __( 'The <code>%1$s</code> setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API' ), $option, $option_page ) );
if ( $unregistered ) {
_deprecated_argument( 'options.php', '2.7',
sprintf(
/* translators: %s: the option/setting */
__( 'The %s setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API' ),
'<code>' . $option . '</code>'
)
);
}
$option = trim( $option );
$value = null;