mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-20 15:21:28 +01:00
Inline documentation for hooks in wp-admin/options-general.php.
Props siobhyb for the initial patch. Fixes #25454. Built from https://develop.svn.wordpress.org/trunk@25830 git-svn-id: http://core.svn.wordpress.org/trunk@25830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1178d9a80b
commit
412f9dffd4
@ -229,13 +229,14 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
|
|||||||
<td>
|
<td>
|
||||||
<fieldset><legend class="screen-reader-text"><span><?php _e('Date Format') ?></span></legend>
|
<fieldset><legend class="screen-reader-text"><span><?php _e('Date Format') ?></span></legend>
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
$date_formats = array_unique( apply_filters( 'date_formats', array(
|
* Filter the default date formats.
|
||||||
__('F j, Y'),
|
*
|
||||||
'Y/m/d',
|
* @since 2.7.0
|
||||||
'm/d/Y',
|
*
|
||||||
'd/m/Y',
|
* @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;
|
$custom = true;
|
||||||
|
|
||||||
@ -262,12 +263,14 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
|
|||||||
<td>
|
<td>
|
||||||
<fieldset><legend class="screen-reader-text"><span><?php _e('Time Format') ?></span></legend>
|
<fieldset><legend class="screen-reader-text"><span><?php _e('Time Format') ?></span></legend>
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
$time_formats = array_unique( apply_filters( 'time_formats', array(
|
* Filter the default time formats.
|
||||||
__('g:i a'),
|
*
|
||||||
'g:i A',
|
* @since 2.7.0
|
||||||
'H:i',
|
*
|
||||||
) ) );
|
* @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;
|
$custom = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user