Make WordPress Core


Ignore:
Timestamp:
01/15/2021 08:06:50 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of false.

Follow-up to [46696], [47060], [49926], [49927], [49929].

See #51800.

File:
1 edited

Legend:

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

    r49936 r49963  
    999999 * @param string $domain Optional. Text domain. Default 'default'.
    10001000 * @param string $path   Optional. The full file path to the directory containing translation files.
    1001  * @return string|false False if the script textdomain could not be loaded, the translated strings
    1002  *                      in JSON encoding otherwise.
     1001 * @return string|false The translated strings in JSON encoding on success,
     1002 *                      false if the script textdomain could not be loaded.
    10031003 */
    10041004function load_script_textdomain( $handle, $domain = 'default', $path = null ) {
     
    11301130 * @param string       $handle Name of the script to register a translation domain to.
    11311131 * @param string       $domain The text domain.
    1132  * @return string|false The JSON-encoded translated strings for the given script handle and text domain. False if there are none.
     1132 * @return string|false The JSON-encoded translated strings for the given script handle and text domain.
     1133 *                      False if there are none.
    11331134 */
    11341135function load_script_translations( $file, $handle, $domain ) {
Note: See TracChangeset for help on using the changeset viewer.