WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/07/2015 04:25:53 AM (6 years ago)
Author:
iseulde
Message:

Make date format consistent across the admin

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

See #30864

File:
1 edited

Legend:

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

    r35685 r35811  
    7474<th scope="row"><label for="home"><?php _e('Site Address (URL)') ?></label></th>
    7575<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' ?>" />
    76 <?php if ( ! defined( 'WP_HOME' ) ) : ?> 
     76<?php if ( ! defined( 'WP_HOME' ) ) : ?>
    7777<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>
    7878<?php endif; ?>
     
    199199            printf( $message,
    200200                '<code>' . date_i18n(
    201                     get_option( 'date_format' ) . ' ' . get_option( 'time_format' ),
     201                    __( 'F j, Y' ) . ' ' . __( 'g:i a' ),
    202202                    $tr['ts'] + ( $tz_offset - $tr['offset'] )
    203203                ) . '</code>'
Note: See TracChangeset for help on using the changeset viewer.