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:
parent
f5eacb71d6
commit
7eb0317968
@ -194,8 +194,15 @@ if ( 'update' == $action ) {
|
|||||||
|
|
||||||
if ( $options ) {
|
if ( $options ) {
|
||||||
foreach ( $options as $option ) {
|
foreach ( $options as $option ) {
|
||||||
if ( $unregistered )
|
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 ) );
|
_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 );
|
$option = trim( $option );
|
||||||
$value = null;
|
$value = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user