Make WordPress Core

Ticket #31852: 31852.2.patch

File 31852.2.patch, 1.8 KB (added by SergeyBiryukov, 10 years ago)
  • src/wp-admin/options-general.php

     
    161161$new_admin_email = get_option( 'new_admin_email' );
    162162if ( $new_admin_email && $new_admin_email != get_option('admin_email') ) : ?>
    163163<div class="updated inline">
    164 <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>
     164<p><?php
     165        printf( __( 'There is a pending change of the admin email to %1$s. <a href="%2$s">Cancel</a>' ),
     166                '<code>' . esc_html( $new_admin_email ) . '</code>',
     167                esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) )
     168        );
     169?></p>
    165170</div>
    166171<?php endif; ?>
    167172</td>
     
    196201<?php echo wp_timezone_choice($tzstring); ?>
    197202</select>
    198203
    199         <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>
     204        <span id="utc-time"><?php
     205                printf( __( '<abbr title="Coordinated Universal Time">UTC</abbr> time is %s' ),
     206                        '<code>' . date_i18n( $timezone_format, false, 'gmt' ) . '</code>'
     207                );
     208        ?></span>
    200209<?php if ( get_option('timezone_string') || !empty($current_offset) ) : ?>
    201         <span id="local-time"><?php printf(__('Local time is <code>%1$s</code>'), date_i18n($timezone_format)); ?></span>
     210        <span id="local-time"><?php
     211                printf( __( 'Local time is %1$s' ),
     212                        '<code>' . date_i18n( $timezone_format ) . '</code>'
     213                );
     214        ?></span>
    202215<?php endif; ?>
    203216<p class="description" id="timezone-description"><?php _e( 'Choose a city in the same timezone as you.' ); ?></p>
    204217<?php if ($check_zone_info && $tzstring) : ?>