Make WordPress Core

Changeset 34484


Ignore:
Timestamp:
09/24/2015 05:49:07 AM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Fix the summary for get_locale().

Also update the description to properly link up hook references with inline @see tags.

See #32246.

File:
1 edited

Legend:

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

    r34483 r34484  
    99
    1010/**
    11  * Get the current locale.
    12  *
    13  * If the locale is set, then it will filter the locale in the 'locale' filter
    14  * hook and return the value.
     11 * Retrieves the current locale.
     12 *
     13 * If the locale is set, then it will filter the locale in the {@see 'locale'}
     14 * filter hook and return the value.
    1515 *
    1616 * If the locale is not set already, then the WPLANG constant is used if it is
    17  * defined. Then it is filtered through the 'locale' filter hook and the value
    18  * for the locale global set and the locale is returned.
     17 * defined. Then it is filtered through the {@see 'locale'} filter hook and
     18 * the value for the locale global set and the locale is returned.
    1919 *
    2020 * The process to get the locale should only be done once, but the locale will
    21  * always be filtered using the 'locale' hook.
     21 * always be filtered using the {@see 'locale'} hook.
    2222 *
    2323 * @since 1.5.0
Note: See TracChangeset for help on using the changeset viewer.