Docs: Improve documentation for `the_date()` and `the_weekday_date()`.
Correct type for `$currentday` and `$previousday` globals. See #47354, #47110. Built from https://develop.svn.wordpress.org/trunk@45377 git-svn-id: http://core.svn.wordpress.org/trunk@45188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
74c0d658b4
commit
0b66be9cd7
|
@ -4171,8 +4171,8 @@ class WP_Query {
|
|||
*
|
||||
* @global int $id
|
||||
* @global WP_User $authordata
|
||||
* @global string|int|bool $currentday
|
||||
* @global string|int|bool $currentmonth
|
||||
* @global string $currentday
|
||||
* @global string $currentmonth
|
||||
* @global int $page
|
||||
* @global array $pages
|
||||
* @global int $multipage
|
||||
|
|
|
@ -2328,8 +2328,8 @@ function the_date_xml() {
|
|||
*
|
||||
* @since 0.71
|
||||
*
|
||||
* @global string|int|bool $currentday
|
||||
* @global string|int|bool $previousday
|
||||
* @global string $currentday The day of the current post in the loop.
|
||||
* @global string $previousday The day of the previous post in the loop.
|
||||
*
|
||||
* @param string $d Optional. PHP date format defaults to the date_format option if not specified.
|
||||
* @param string $before Optional. Output before the date.
|
||||
|
@ -2675,10 +2675,11 @@ function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translat
|
|||
*
|
||||
* @since 0.71
|
||||
*
|
||||
* @global WP_Locale $wp_locale
|
||||
* @global WP_Locale $wp_locale The WordPress date and time locale object.
|
||||
*/
|
||||
function the_weekday() {
|
||||
global $wp_locale;
|
||||
|
||||
$the_weekday = $wp_locale->get_weekday( mysql2date( 'w', get_post()->post_date, false ) );
|
||||
|
||||
/**
|
||||
|
@ -2699,12 +2700,12 @@ function the_weekday() {
|
|||
*
|
||||
* @since 0.71
|
||||
*
|
||||
* @global WP_Locale $wp_locale
|
||||
* @global string|int|bool $currentday
|
||||
* @global string|int|bool $previousweekday
|
||||
* @global WP_Locale $wp_locale The WordPress date and time locale object.
|
||||
* @global string $currentday The day of the current post in the loop.
|
||||
* @global string $previousweekday The day of the previous post in the loop.
|
||||
*
|
||||
* @param string $before Optional Output before the date.
|
||||
* @param string $after Optional Output after the date.
|
||||
* @param string $before Optional. Output before the date.
|
||||
* @param string $after Optional. Output after the date.
|
||||
*/
|
||||
function the_weekday_date( $before = '', $after = '' ) {
|
||||
global $wp_locale, $currentday, $previousweekday;
|
||||
|
@ -2721,7 +2722,7 @@ function the_weekday_date( $before = '', $after = '' ) {
|
|||
*
|
||||
* @since 0.71
|
||||
*
|
||||
* @param string $the_weekday_date
|
||||
* @param string $the_weekday_date The weekday on which the post was written.
|
||||
* @param string $before The HTML to output before the date.
|
||||
* @param string $after The HTML to output after the date.
|
||||
*/
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-alpha-45376';
|
||||
$wp_version = '5.3-alpha-45377';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue