Make WordPress Core

Changeset 34294


Ignore:
Timestamp:
09/18/2015 06:23:19 PM (10 years ago)
Author:
wonderboymusic
Message:

Don't use <code> in translation strings in options-general.php.

Props ramiy, SergeyBiryukov.
Fixes #31852.

File:
1 edited

Legend:

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

    r34022 r34294  
    103103if ( $new_admin_email && $new_admin_email != get_option('admin_email') ) : ?>
    104104<div class="updated inline">
    105 <p><?php printf( __('There is a pending change of the admin email to <code>%1$s</code>. <a href="%2$s">Cancel</a>'), esc_html( $new_admin_email ), esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) ) ); ?></p>
     105<p><?php
     106    printf( __( 'There is a pending change of the admin email to %1$s. <a href="%2$s">Cancel</a>' ),
     107        '<code>' . esc_html( $new_admin_email ) . '</code>',
     108        esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) )
     109    );
     110?></p>
    106111</div>
    107112<?php endif; ?>
     
    138143</select>
    139144
    140     <span id="utc-time"><?php printf(__('<abbr title="Coordinated Universal Time">UTC</abbr> time is <code>%s</code>'), date_i18n($timezone_format, false, 'gmt')); ?></span>
     145    <span id="utc-time"><?php
     146        printf( __( '<abbr title="Coordinated Universal Time">UTC</abbr> time is %s' ),
     147            '<code>' . date_i18n( $timezone_format, false, 'gmt' ) . '</code>'
     148        );
     149    ?></span>
    141150<?php if ( get_option('timezone_string') || !empty($current_offset) ) : ?>
    142     <span id="local-time"><?php printf(__('Local time is <code>%1$s</code>'), date_i18n($timezone_format)); ?></span>
     151    <span id="local-time"><?php
     152        printf( __( 'Local time is %1$s' ),
     153            '<code>' . date_i18n( $timezone_format ) . '</code>'
     154        );
     155    ?></span>
    143156<?php endif; ?>
    144157<p class="description" id="timezone-description"><?php _e( 'Choose a city in the same timezone as you.' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.