From fd4ad167b205605bc5a2f968c18cf02a1e398cb0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 1 Jul 2014 14:58:37 +0000 Subject: [PATCH] Some fixes for get_weekstartend() docs. see #26185. git-svn-id: https://develop.svn.wordpress.org/trunk@28937 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index bc8b76ee42..ce29f6516d 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -216,25 +216,25 @@ function size_format( $bytes, $decimals = 0 ) { } /** - * Get the week start and end from the datetime or date string from mysql. + * Get the week start and end from the datetime or date string from MySQL. * * @since 0.71 * - * @param string $mysqlstring Date or datetime field type from mysql. - * @param int $start_of_week Optional. Start of the week as an integer. + * @param string $mysqlstring Date or datetime field type from MySQL. + * @param int|string $start_of_week Optional. Start of the week as an integer. Default empty string. * @return array Keys are 'start' and 'end'. */ function get_weekstartend( $mysqlstring, $start_of_week = '' ) { - // Mysql string year. + // MySQL string year. $my = substr( $mysqlstring, 0, 4 ); - // Mysql string month. + // MySQL string month. $mm = substr( $mysqlstring, 8, 2 ); - // Mysql string day. + // MySQL string day. $md = substr( $mysqlstring, 5, 2 ); - // The timestamp for mysqlstring day. + // The timestamp for MySQL string day. $day = mktime( 0, 0, 0, $md, $mm, $my ); // The day of the week from the timestamp.