Correct @return value for current_time().
props arnee. fixes #27940. Built from https://develop.svn.wordpress.org/trunk@28240 git-svn-id: http://core.svn.wordpress.org/trunk@28068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e6644720f9
commit
58dcece494
|
@ -55,7 +55,7 @@ function mysql2date( $format, $date, $translate = true ) {
|
|||
*
|
||||
* @param string $type 'mysql', 'timestamp', or PHP date format string (e.g. 'Y-m-d').
|
||||
* @param int|bool $gmt Optional. Whether to use GMT timezone. Default is false.
|
||||
* @return int|string String if $type is 'gmt', int if $type is 'timestamp'.
|
||||
* @return int|string Integer if $type is 'timestamp', string otherwise.
|
||||
*/
|
||||
function current_time( $type, $gmt = 0 ) {
|
||||
switch ( $type ) {
|
||||
|
|
Loading…
Reference in New Issue