Inline documentation for hooks in wp-admin/options-general.php.
Props siobhyb for the initial patch. Fixes #25454. git-svn-id: https://develop.svn.wordpress.org/trunk@25830 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eb3d658b7e
commit
8166a14066
@ -229,13 +229,14 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
|
||||
<td>
|
||||
<fieldset><legend class="screen-reader-text"><span><?php _e('Date Format') ?></span></legend>
|
||||
<?php
|
||||
|
||||
$date_formats = array_unique( apply_filters( 'date_formats', array(
|
||||
__('F j, Y'),
|
||||
'Y/m/d',
|
||||
'm/d/Y',
|
||||
'd/m/Y',
|
||||
) ) );
|
||||
/**
|
||||
* Filter the default date formats.
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param array $default_date_formats Array of default date formats.
|
||||
*/
|
||||
$date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y' ), 'Y/m/d', 'm/d/Y', 'd/m/Y' ) ) );
|
||||
|
||||
$custom = true;
|
||||
|
||||
@ -262,12 +263,14 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
|
||||
<td>
|
||||
<fieldset><legend class="screen-reader-text"><span><?php _e('Time Format') ?></span></legend>
|
||||
<?php
|
||||
|
||||
$time_formats = array_unique( apply_filters( 'time_formats', array(
|
||||
__('g:i a'),
|
||||
'g:i A',
|
||||
'H:i',
|
||||
) ) );
|
||||
/**
|
||||
* Filter the default time formats.
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param array $default_time_formats Array of default time formats.
|
||||
*/
|
||||
$time_formats = array_unique( apply_filters( 'time_formats', array( __( 'g:i a' ), 'g:i A', 'H:i' ) ) );
|
||||
|
||||
$custom = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user