mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-01 21:21:24 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@40946 git-svn-id: http://core.svn.wordpress.org/trunk@40796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
30719312fb
commit
3a3e133aaf
@ -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 );
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9-alpha-40945';
|
||||
$wp_version = '4.9-alpha-40946';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user