Make WordPress Core

Changeset 34315


Ignore:
Timestamp:
09/18/2015 08:42:20 PM (9 years ago)
Author:
ocean90
Message:

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

Props ramiy, wonderboymusic.
Fixes #31861.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options.php

    r33863 r34315  
    195195    if ( $options ) {
    196196        foreach ( $options as $option ) {
    197             if ( $unregistered )
    198                 _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 ) );
     197            if ( $unregistered ) {
     198                _deprecated_argument( 'options.php', '2.7',
     199                    sprintf(
     200                        /* translators: %s: the option/setting */
     201                        __( 'The %s setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API' ),
     202                        '<code>' . $option . '</code>'
     203                    )
     204                );
     205            }
    199206
    200207            $option = trim( $option );
Note: See TracChangeset for help on using the changeset viewer.