Docs: Adjust `get_post_modified_time` filter DocBlock for consistency with `get_post_time`.
See #47110. Built from https://develop.svn.wordpress.org/trunk@45380 git-svn-id: http://core.svn.wordpress.org/trunk@45191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3c16bdc538
commit
0cc6547e43
|
@ -2658,6 +2658,7 @@ function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translat
|
||||||
} else {
|
} else {
|
||||||
$time = $post->post_modified;
|
$time = $post->post_modified;
|
||||||
}
|
}
|
||||||
|
|
||||||
$time = mysql2date( $d, $time, $translate );
|
$time = mysql2date( $d, $time, $translate );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2666,8 +2667,9 @@ function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translat
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
*
|
*
|
||||||
* @param string $time The formatted time.
|
* @param string $time The formatted time.
|
||||||
* @param string $d The date format. Accepts 'G', 'U', or php date format. Default 'U'.
|
* @param string $d Format to use for retrieving the time the post was modified.
|
||||||
* @param bool $gmt Whether to return the GMT time. Default false.
|
* Accepts 'G', 'U', or php date format. Default 'U'.
|
||||||
|
* @param bool $gmt Whether to retrieve the GMT time. Default false.
|
||||||
*/
|
*/
|
||||||
return apply_filters( 'get_post_modified_time', $time, $d, $gmt );
|
return apply_filters( 'get_post_modified_time', $time, $d, $gmt );
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-45379';
|
$wp_version = '5.3-alpha-45380';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue