Docs: Add missing description for `$weekday_name` parameter and `@return` entry in `WP_Locale::get_weekday_initial()`.

Props keesiemeijer, 1naveengiri.
Fixes #42793.
Built from https://develop.svn.wordpress.org/trunk@42361


git-svn-id: http://core.svn.wordpress.org/trunk@42190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-12-04 15:59:54 +00:00
parent f617a2d6d9
commit 4048a63b01
2 changed files with 11 additions and 11 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 ];

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-42360';
$wp_version = '5.0-alpha-42361';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.