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:
parent
14dd35e62e
commit
59612bff8b
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user