WordPress.org

Make WordPress Core

Changeset 40946


Ignore:
Timestamp:
06/25/2017 09:49:27 PM (3 years ago)
Author:
DrewAPicture
Message:

Docs: Clarify that the $post parameters for the get_the_modified_date and get_the_modified_time filters can also be of type null.

Props dlh.
Fixes #40845.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r40933 r40946  
    23142314     * @since 4.6.0 Added the `$post` parameter.
    23152315     *
    2316      * @param string  $the_time The formatted date.
    2317      * @param string  $d        PHP date format. Defaults to value specified in
    2318      *                          'date_format' option.
    2319      * @param WP_Post $post     WP_Post object.
     2316     * @param string|bool  $the_time The formatted date or false if no post is found.
     2317     * @param string       $d        PHP date format. Defaults to value specified in
     2318     *                               'date_format' option.
     2319     * @param WP_Post|null $post     WP_Post object or null if no post is found.
    23202320     */
    23212321    return apply_filters( 'get_the_modified_date', $the_time, $d, $post );
     
    24692469     * @since 4.6.0 Added the `$post` parameter.
    24702470     *
    2471      * @param string $the_time The formatted time.
    2472      * @param string $d        Format to use for retrieving the time the post was
    2473      *                         written. Accepts 'G', 'U', or php date format. Defaults
    2474      *                         to value specified in 'time_format' option.
    2475      * @param WP_Post $post    WP_Post object.
     2471     * @param string|bool  $the_time The formatted time or false if no post is found.
     2472     * @param string       $d        Format to use for retrieving the time the post was
     2473     *                               written. Accepts 'G', 'U', or php date format. Defaults
     2474     *                               to value specified in 'time_format' option.
     2475     * @param WP_Post|null $post     WP_Post object or null if no post is found.
    24762476     */
    24772477    return apply_filters( 'get_the_modified_time', $the_time, $d, $post );
Note: See TracChangeset for help on using the changeset viewer.