mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 19:56:49 +01:00
Docs: Correct description for the_time(), get_the_time(), and get_post_time().
This aims to avoid confusion with `the_date()` and `get_the_date()`. Includes synchronizing the description for `the_weekday()` and `the_weekday_date()`, which have very similar functionality, except that the latter will only output the weekday if the current post's weekday is different from the previous one output. Follow-up to [59691]. See #51289. Built from https://develop.svn.wordpress.org/trunk@59692 git-svn-id: http://core.svn.wordpress.org/trunk@59034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
98657c10d5
commit
0fc515b005
|
|
@ -2672,7 +2672,7 @@ function get_the_modified_date( $format = '', $post = null ) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Displays the date of the post.
|
||||
* Displays the time of the post.
|
||||
*
|
||||
* @since 0.71
|
||||
*
|
||||
|
|
@ -2682,7 +2682,7 @@ function get_the_modified_date( $format = '', $post = null ) {
|
|||
*/
|
||||
function the_time( $format = '' ) {
|
||||
/**
|
||||
* Filters the date of the post, for display.
|
||||
* Filters the time of the post, for display.
|
||||
*
|
||||
* @since 0.71
|
||||
*
|
||||
|
|
@ -2694,7 +2694,7 @@ function the_time( $format = '' ) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Retrieves the date of the post.
|
||||
* Retrieves the time of the post.
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
|
|
@ -2717,7 +2717,7 @@ function get_the_time( $format = '', $post = null ) {
|
|||
$the_time = get_post_time( $_format, false, $post, true );
|
||||
|
||||
/**
|
||||
* Filters the date of the post.
|
||||
* Filters the time of the post.
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
|
|
@ -2730,7 +2730,7 @@ function get_the_time( $format = '', $post = null ) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Retrieves the localized date of the post.
|
||||
* Retrieves the localized time of the post.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
|
|
@ -2774,7 +2774,7 @@ function get_post_time( $format = 'U', $gmt = false, $post = null, $translate =
|
|||
}
|
||||
|
||||
/**
|
||||
* Filters the localized date of the post.
|
||||
* Filters the localized time of the post.
|
||||
*
|
||||
* @since 2.6.0
|
||||
*
|
||||
|
|
@ -2976,7 +2976,7 @@ function get_post_modified_time( $format = 'U', $gmt = false, $post = null, $tra
|
|||
}
|
||||
|
||||
/**
|
||||
* Displays the weekday for the post.
|
||||
* Displays the localized weekday for the post.
|
||||
*
|
||||
* @since 0.71
|
||||
*
|
||||
|
|
@ -2994,7 +2994,7 @@ function the_weekday() {
|
|||
$the_weekday = $wp_locale->get_weekday( get_post_time( 'w', false, $post ) );
|
||||
|
||||
/**
|
||||
* Filters the weekday of the post, for display.
|
||||
* Filters the localized weekday of the post, for display.
|
||||
*
|
||||
* @since 0.71
|
||||
*
|
||||
|
|
@ -3004,7 +3004,7 @@ function the_weekday() {
|
|||
}
|
||||
|
||||
/**
|
||||
* Displays the localized weekday date for the post
|
||||
* Displays the localized weekday for the post.
|
||||
*
|
||||
* Will only output the weekday if the current post's weekday is different from
|
||||
* the previous one output.
|
||||
|
|
@ -3037,7 +3037,7 @@ function the_weekday_date( $before = '', $after = '' ) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Filters the localized weekday date of the post, for display.
|
||||
* Filters the localized weekday of the post, for display.
|
||||
*
|
||||
* @since 0.71
|
||||
*
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59691';
|
||||
$wp_version = '6.8-alpha-59692';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user