WordPress.org

Make WordPress Core

Changeset 30380


Ignore:
Timestamp:
11/18/2014 06:46:11 PM (7 years ago)
Author:
DrewAPicture
Message:

Clarify/correct inline documentation in wp-includes/l10n.php.

  • Add a missing @return description for load_default_textdomain()
  • Clarify the @param description for $locale with an inline @see tag
  • Ensure the correct parameter variable is used when documenting $args for wp_dropdown_languages()

Props camdensegal.
Fixes #30385.

File:
1 edited

Legend:

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

    r30340 r30380  
    533533 * @since 1.5.0
    534534 *
    535  * @param string $locale Optional. Locale to load. Defaults to get_locale().
     535 * @param string $locale Optional. Locale to load. Default is the value of {@see get_locale()}.
     536 * @return bool Whether the textdomain was loaded.
    536537 */
    537538function load_default_textdomain( $locale = null ) {
     
    850851 * @see wp_get_available_translations()
    851852 *
    852  * @param string|array $query {
    853  *     Optional. Array of arguments.
     853 * @param string|array $args {
     854 *     Optional. Array or string of arguments for outputting the language selector.
    854855 *
    855856 *     @type string  $id                           ID attribute of the select element. Default empty.
Note: See TracChangeset for help on using the changeset viewer.