Correct @return value for current_time().
props arnee. fixes #27940. git-svn-id: https://develop.svn.wordpress.org/trunk@28240 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fe2f5f921e
commit
b9834e8275
@ -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
Block a user