From 440c78d405d9c91bcbc088d695ffd90bdda0652f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 1 Jul 2014 14:59:15 +0000 Subject: [PATCH] Some fixes for get_weekstartend() docs. see #26185. Built from https://develop.svn.wordpress.org/trunk@28937 git-svn-id: http://core.svn.wordpress.org/trunk@28735 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index bc8b76ee42..ce29f6516d 100644 --- a/wp-includes/functions.php +++ b/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.