mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-13 07:10:00 +01:00
Docs: Correct formatting for get_the_date
and get_the_time
DocBlocks.
Follow-up to [53000]. See #62281. Built from https://develop.svn.wordpress.org/trunk@59829 git-svn-id: http://core.svn.wordpress.org/trunk@59171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
05770e25c3
commit
2eb7a359e3
@ -2525,8 +2525,8 @@ function the_date_xml() {
|
||||
* i.e. Only one date listing will show per day worth of posts shown in the loop, even if the
|
||||
* function is called several times for each post.
|
||||
*
|
||||
* HTML output can be filtered with 'the_date'.
|
||||
* Date string output can be filtered with 'get_the_date'.
|
||||
* HTML output can be filtered with {@see 'the_date'}.
|
||||
* Date string output can be filtered with {@see 'get_the_date'}.
|
||||
*
|
||||
* @since 0.71
|
||||
*
|
||||
@ -2596,9 +2596,9 @@ function get_the_date( $format = '', $post = null ) {
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param string|int $the_date Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
|
||||
* @param string $format PHP date format.
|
||||
* @param WP_Post $post The post object.
|
||||
* @param string|int $the_date Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
|
||||
* @param string $format PHP date format.
|
||||
* @param WP_Post $post The post object.
|
||||
*/
|
||||
return apply_filters( 'get_the_date', $the_date, $format, $post );
|
||||
}
|
||||
@ -2721,10 +2721,10 @@ function get_the_time( $format = '', $post = null ) {
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @param string|int $the_time Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
|
||||
* @param string $format Format to use for retrieving the time the post
|
||||
* was written. Accepts 'G', 'U', or PHP date format.
|
||||
* @param WP_Post $post Post object.
|
||||
* @param string|int $the_time Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
|
||||
* @param string $format Format to use for retrieving the time the post
|
||||
* was written. Accepts 'G', 'U', or PHP date format.
|
||||
* @param WP_Post $post Post object.
|
||||
*/
|
||||
return apply_filters( 'get_the_time', $the_time, $format, $post );
|
||||
}
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59828';
|
||||
$wp_version = '6.8-alpha-59829';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user