Make WordPress Core


Ignore:
Timestamp:
05/02/2014 11:24:23 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Correct @return value for current_time().

props arnee.
fixes #27940.

File:
1 edited

Legend:

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

    r28109 r28240  
    5656 * @param string $type 'mysql', 'timestamp', or PHP date format string (e.g. 'Y-m-d').
    5757 * @param int|bool $gmt Optional. Whether to use GMT timezone. Default is false.
    58  * @return int|string String if $type is 'gmt', int if $type is 'timestamp'.
     58 * @return int|string Integer if $type is 'timestamp', string otherwise.
    5959 */
    6060function current_time( $type, $gmt = 0 ) {
Note: See TracChangeset for help on using the changeset viewer.