WordPress.org

Make WordPress Core

Changeset 45254


Ignore:
Timestamp:
04/19/2019 02:21:00 PM (17 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct @param type for $deprecated and $plugin_rel_path arguments of load_plugin_textdomain().

Props sudar.
Fixes #43304.

File:
1 edited

Legend:

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

    r44830 r45254  
    768768 * @since 4.6.0 The function now tries to load the .mo file from the languages directory first.
    769769 *
    770  * @param string $domain          Unique identifier for retrieving translated strings
    771  * @param string $deprecated      Optional. Use the $plugin_rel_path parameter instead. Default false.
    772  * @param string $plugin_rel_path Optional. Relative path to WP_PLUGIN_DIR where the .mo file resides.
    773  *                                Default false.
     770 * @param string       $domain          Unique identifier for retrieving translated strings
     771 * @param string|false $deprecated      Optional. Deprecated. Use the $plugin_rel_path parameter instead.
     772 *                                      Default false.
     773 * @param string|false $plugin_rel_path Optional. Relative path to WP_PLUGIN_DIR where the .mo file resides.
     774 *                                      Default false.
    774775 * @return bool True when textdomain is successfully loaded, false otherwise.
    775776 */
Note: See TracChangeset for help on using the changeset viewer.