Correct @return value for get_the_date().
props TobiasBg. fixes #27181. Built from https://develop.svn.wordpress.org/trunk@27231 git-svn-id: http://core.svn.wordpress.org/trunk@27088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
68f4f9d5ba
commit
46fc082824
|
@ -1382,7 +1382,7 @@ function the_date_xml() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display or Retrieve the date the current $post was written (once per date)
|
* Display or Retrieve the date the current post was written (once per date)
|
||||||
*
|
*
|
||||||
* Will only output the date if the current post's date is different from the
|
* Will only output the date if the current post's date is different from the
|
||||||
* previous one output.
|
* previous one output.
|
||||||
|
@ -1420,7 +1420,7 @@ function the_date( $d = '', $before = '', $after = '', $echo = true ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the date the current $post was written.
|
* Retrieve the date the current post was written.
|
||||||
*
|
*
|
||||||
* Unlike the_date() this function will always return the date.
|
* Unlike the_date() this function will always return the date.
|
||||||
* Modify output with 'get_the_date' filter.
|
* Modify output with 'get_the_date' filter.
|
||||||
|
@ -1428,7 +1428,7 @@ function the_date( $d = '', $before = '', $after = '', $echo = true ) {
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @param string $d Optional. PHP date format defaults to the date_format option if not specified.
|
* @param string $d Optional. PHP date format defaults to the date_format option if not specified.
|
||||||
* @return string|null Null if displaying, string if retrieving.
|
* @return string Date the current post was written.
|
||||||
*/
|
*/
|
||||||
function get_the_date( $d = '' ) {
|
function get_the_date( $d = '' ) {
|
||||||
$post = get_post();
|
$post = get_post();
|
||||||
|
|
Loading…
Reference in New Issue