Make WordPress Core

Ticket #8750: functions.php.diff

File functions.php.diff, 1.0 KB (added by designsimply, 16 years ago)

Update current_time documentation.

  • wp-includes/functions.php

     
    7979 * The 'mysql' type will return the time in the format for MySQL DATETIME field.
    8080 * The 'timestamp' type will return the current timestamp.
    8181 *
    82  * If the $gmt is set to either '1' or 'true', then both types will use the
    83  * GMT offset in the WordPress option to add the GMT offset to the time.
     82 * If $gmt is set to either '1' or 'true', then both types will use GMT time.
     83 * if $gmt is false, the output is adjusted with the GMT offset in the WordPress option.
    8484 *
    8585 * @since 1.0.0
    8686 *
    8787 * @param string $type Either 'mysql' or 'timestamp'.
    88  * @param int|bool $gmt Optional. Whether to use $gmt offset. Default is false.
     88 * @param int|bool $gmt Optional. Whether to use GMT timezone. Default is false.
    8989 * @return int|string String if $type is 'gmt', int if $type is 'timestamp'.
    9090 */
    9191function current_time( $type, $gmt = 0 ) {