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
This commit is contained in:
Sergey Biryukov 2017-12-04 15:58:03 +00:00
parent 14dd35e62e
commit 59612bff8b
1 changed files with 10 additions and 10 deletions

View File

@ -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 ];