WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/01/2016 06:33:07 PM (3 years ago)
Author:
jorbin
Message:

Administration: Use a bool when when a bool is called for

The third parameter of date_i18n is a bool. Currently, it's a weak check, otherwise the call showing the universal time on the "General Settings" screen would be messed up. Use an actual bool so we call our own functions correctly.

Fixes #37634.
Props fronaldaraujo.

File:
1 edited

Legend:

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

    r38483 r38502  
    158158        printf( __( 'Universal time (%1$s) is %2$s.' ),
    159159            '<abbr>' . __( 'UTC' ) . '</abbr>',
    160             '<code>' . date_i18n( $timezone_format, false, 'gmt' ) . '</code>'
     160            '<code>' . date_i18n( $timezone_format, false, true ) . '</code>'
    161161        );
    162162    ?></span>
Note: See TracChangeset for help on using the changeset viewer.