Make WordPress Core

Changeset 28924


Ignore:
Timestamp:
06/30/2014 01:51:11 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Document @return value for load_plugin_textdomain(). props jdgrimes.

Document $path parameter for load_child_theme_textdomain().

fixes #28690.

File:
1 edited

Legend:

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

    r28774 r28924  
    555555 * @param string $deprecated      Use the $plugin_rel_path parameter instead.
    556556 * @param string $plugin_rel_path Optional. Relative path to WP_PLUGIN_DIR where the .mo file resides.
     557 *                                Default false.
     558 * @return bool True when textdomain is successfully loaded, false otherwise.
    557559 */
    558560function load_plugin_textdomain( $domain, $deprecated = false, $plugin_rel_path = false ) {
     
    663665 *
    664666 * @param string $domain Text domain. Unique identifier for retrieving translated strings.
     667 * @param string $path   Optional. Path to the directory containing the .mo file.
     668 *                       Default false.
    665669 * @return bool True when the theme textdomain is successfully loaded, false otherwise.
    666670 */
Note: See TracChangeset for help on using the changeset viewer.