From 46fc0828249305f7624219223dd27584a5ca4451 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 21 Feb 2014 22:49:13 +0000 Subject: [PATCH] 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 --- wp-includes/general-template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index cb61c58ad2..9920fb3f30 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -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();