Make WordPress Core


Ignore:
Timestamp:
10/17/2013 06:17:20 AM (13 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/options-general.php.

Props siobhyb for the initial patch.
Fixes #25454.

File:
1 edited

Legend:

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

    r25616 r25830  
    230230        <fieldset><legend class="screen-reader-text"><span><?php _e('Date Format') ?></span></legend>
    231231<?php
    232 
    233         $date_formats = array_unique( apply_filters( 'date_formats', array(
    234                 __('F j, Y'),
    235                 'Y/m/d',
    236                 'm/d/Y',
    237                 'd/m/Y',
    238         ) ) );
     232        /**
     233        * Filter the default date formats.
     234        *
     235        * @since 2.7.0
     236        *
     237        * @param array $default_date_formats Array of default date formats.
     238        */
     239        $date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y' ), 'Y/m/d', 'm/d/Y', 'd/m/Y' ) ) );
    239240
    240241        $custom = true;
     
    263264        <fieldset><legend class="screen-reader-text"><span><?php _e('Time Format') ?></span></legend>
    264265<?php
    265 
    266         $time_formats = array_unique( apply_filters( 'time_formats', array(
    267                 __('g:i a'),
    268                 'g:i A',
    269                 'H:i',
    270         ) ) );
     266        /**
     267        * Filter the default time formats.
     268        *
     269        * @since 2.7.0
     270        *
     271        * @param array $default_time_formats Array of default time formats.
     272        */
     273        $time_formats = array_unique( apply_filters( 'time_formats', array( __( 'g:i a' ), 'g:i A', 'H:i' ) ) );
    271274
    272275        $custom = true;
Note: See TracChangeset for help on using the changeset viewer.