From 59612bff8bec79528eedc873afb41e8cb2c99aab Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 4 Dec 2017 15:58:03 +0000 Subject: [PATCH] Docs: Add missing description for `$weekday_name` parameter and `@return` entry in `WP_Locale::get_weekday_initial()`. Props keesiemeijer, 1naveengiri. Fixes #42793. git-svn-id: https://develop.svn.wordpress.org/trunk@42361 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-locale.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/wp-includes/class-wp-locale.php b/src/wp-includes/class-wp-locale.php index 2c42e3a8c7..81a80a59f0 100644 --- a/src/wp-includes/class-wp-locale.php +++ b/src/wp-includes/class-wp-locale.php @@ -254,8 +254,8 @@ class WP_Locale { * * @since 2.1.0 * - * @param int $weekday_number 0 for Sunday through 6 Saturday - * @return string Full translated weekday + * @param int $weekday_number 0 for Sunday through 6 Saturday. + * @return string Full translated weekday. */ public function get_weekday( $weekday_number ) { return $this->weekday[ $weekday_number ]; @@ -271,8 +271,8 @@ class WP_Locale { * * @since 2.1.0 * - * @param string $weekday_name - * @return string + * @param string $weekday_name Full translated weekday word. + * @return string Translated weekday initial. */ public function get_weekday_initial( $weekday_name ) { return $this->weekday_initial[ $weekday_name ]; @@ -286,8 +286,8 @@ class WP_Locale { * * @since 2.1.0 * - * @param string $weekday_name Full translated weekday word - * @return string Translated weekday abbreviation + * @param string $weekday_name Full translated weekday word. + * @return string Translated weekday abbreviation. */ public function get_weekday_abbrev( $weekday_name ) { return $this->weekday_abbrev[ $weekday_name ]; @@ -306,8 +306,8 @@ class WP_Locale { * * @since 2.1.0 * - * @param string|int $month_number '01' through '12' - * @return string Translated full month name + * @param string|int $month_number '01' through '12'. + * @return string Translated full month name. */ public function get_month( $month_number ) { return $this->month[ zeroise( $month_number, 2 ) ]; @@ -321,8 +321,8 @@ class WP_Locale { * * @since 2.1.0 * - * @param string $month_name Translated month to get abbreviated version - * @return string Translated abbreviated month + * @param string $month_name Translated month to get abbreviated version. + * @return string Translated abbreviated month. */ public function get_month_abbrev( $month_name ) { return $this->month_abbrev[ $month_name ];