Commit e1a948eb authored by Sergey Biryukov's avatar Sergey Biryukov
Browse files

Correct @return value for get_the_date().

props TobiasBg.
fixes #27181.
Built from https://develop.svn.wordpress.org/trunk@27231


git-svn-id: https://core.svn.wordpress.org/trunk@27088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 0aba71c5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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();