Make date format consistent across the admin

The 'date_format' and 'time_format' options shouldn't affect the backend.

See #30864


Built from https://develop.svn.wordpress.org/trunk@35811


git-svn-id: http://core.svn.wordpress.org/trunk@35775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ella Iseulde Van Dorpe
2015-12-07 04:26:27 +00:00
parent 07339e61c0
commit 657d3b50af
11 changed files with 18 additions and 18 deletions

View File

@@ -73,7 +73,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<tr>
<th scope="row"><label for="home"><?php _e('Site Address (URL)') ?></label></th>
<td><input name="home" type="url" id="home" aria-describedby="home-description" value="<?php form_option( 'home' ); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" />
<?php if ( ! defined( 'WP_HOME' ) ) : ?>
<?php if ( ! defined( 'WP_HOME' ) ) : ?>
<p class="description" id="home-description"><?php _e( 'Enter the address here if you <a href="https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">want your site home page to be different from your WordPress installation directory.</a>' ); ?></p></td>
<?php endif; ?>
</tr>
@@ -198,7 +198,7 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
// Add the difference between the current offset and the new offset to ts to get the correct transition time from date_i18n().
printf( $message,
'<code>' . date_i18n(
get_option( 'date_format' ) . ' ' . get_option( 'time_format' ),
__( 'F j, Y' ) . ' ' . __( 'g:i a' ),
$tr['ts'] + ( $tz_offset - $tr['offset'] )
) . '</code>'
);