WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/21/2014 10:48:38 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Correct @return value for get_the_date().

props TobiasBg.
fixes #27181.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r27230 r27231  
    13831383
    13841384/**
    1385  * Display or Retrieve the date the current $post was written (once per date)
     1385 * Display or Retrieve the date the current post was written (once per date)
    13861386 *
    13871387 * Will only output the date if the current post's date is different from the
     
    14211421
    14221422/**
    1423  * Retrieve the date the current $post was written.
     1423 * Retrieve the date the current post was written.
    14241424 *
    14251425 * Unlike the_date() this function will always return the date.
     
    14291429 *
    14301430 * @param string $d Optional. PHP date format defaults to the date_format option if not specified.
    1431  * @return string|null Null if displaying, string if retrieving.
     1431 * @return string Date the current post was written.
    14321432 */
    14331433function get_the_date( $d = '' ) {
Note: See TracChangeset for help on using the changeset viewer.