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:
Drew Jaynes 2013-10-24 22:53:57 +00:00
parent 1178d9a80b
commit 412f9dffd4

View File

@ -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;