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:
Sergey Biryukov 2014-02-21 22:49:13 +00:00
parent 68f4f9d5ba
commit 46fc082824
1 changed files with 3 additions and 3 deletions

View File

@ -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
* 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.
* Modify output with 'get_the_date' filter.
@ -1428,7 +1428,7 @@ function the_date( $d = '', $before = '', $after = '', $echo = true ) {
* @since 3.0.0
*
* @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 = '' ) {
$post = get_post();