From 3154c123c808c349af10374a98fb13d6d7229c37 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 25 Jun 2017 21:49:27 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@40946 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 981b613e35..958ebeaa6c 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -2313,10 +2313,10 @@ function get_the_modified_date( $d = '', $post = null ) { * @since 2.1.0 * @since 4.6.0 Added the `$post` parameter. * - * @param string $the_time The formatted date. - * @param string $d PHP date format. Defaults to value specified in - * 'date_format' option. - * @param WP_Post $post WP_Post object. + * @param string|bool $the_time The formatted date or false if no post is found. + * @param string $d PHP date format. Defaults to value specified in + * 'date_format' option. + * @param WP_Post|null $post WP_Post object or null if no post is found. */ return apply_filters( 'get_the_modified_date', $the_time, $d, $post ); } @@ -2468,11 +2468,11 @@ function get_the_modified_time( $d = '', $post = null ) { * @since 2.0.0 * @since 4.6.0 Added the `$post` parameter. * - * @param string $the_time The formatted time. - * @param string $d Format to use for retrieving the time the post was - * written. Accepts 'G', 'U', or php date format. Defaults - * to value specified in 'time_format' option. - * @param WP_Post $post WP_Post object. + * @param string|bool $the_time The formatted time or false if no post is found. + * @param string $d Format to use for retrieving the time the post was + * written. Accepts 'G', 'U', or php date format. Defaults + * to value specified in 'time_format' option. + * @param WP_Post|null $post WP_Post object or null if no post is found. */ return apply_filters( 'get_the_modified_time', $the_time, $d, $post ); }