Make WordPress Core


Ignore:
Timestamp:
12/04/2017 03:58:03 PM (7 years ago)
Author:
SergeyBiryukov
Message:

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

Props keesiemeijer, 1naveengiri.
Fixes #42793.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-locale.php

    r42343 r42361  
    255255     * @since 2.1.0
    256256     *
    257      * @param int $weekday_number 0 for Sunday through 6 Saturday
    258      * @return string Full translated weekday
     257     * @param int $weekday_number 0 for Sunday through 6 Saturday.
     258     * @return string Full translated weekday.
    259259     */
    260260    public function get_weekday( $weekday_number ) {
     
    272272     * @since 2.1.0
    273273     *
    274      * @param string $weekday_name
    275      * @return string
     274     * @param string $weekday_name Full translated weekday word.
     275     * @return string Translated weekday initial.
    276276     */
    277277    public function get_weekday_initial( $weekday_name ) {
     
    287287     * @since 2.1.0
    288288     *
    289      * @param string $weekday_name Full translated weekday word
    290      * @return string Translated weekday abbreviation
     289     * @param string $weekday_name Full translated weekday word.
     290     * @return string Translated weekday abbreviation.
    291291     */
    292292    public function get_weekday_abbrev( $weekday_name ) {
     
    307307     * @since 2.1.0
    308308     *
    309      * @param string|int $month_number '01' through '12'
    310      * @return string Translated full month name
     309     * @param string|int $month_number '01' through '12'.
     310     * @return string Translated full month name.
    311311     */
    312312    public function get_month( $month_number ) {
     
    322322     * @since 2.1.0
    323323     *
    324      * @param string $month_name Translated month to get abbreviated version
    325      * @return string Translated abbreviated month
     324     * @param string $month_name Translated month to get abbreviated version.
     325     * @return string Translated abbreviated month.
    326326     */
    327327    public function get_month_abbrev( $month_name ) {
Note: See TracChangeset for help on using the changeset viewer.