From 275245649384a7bcebe58832b3953c6182e54fa9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 30 Jun 2014 13:52:15 +0000 Subject: [PATCH] Document @return value for load_plugin_textdomain(). props jdgrimes. Document $path parameter for load_child_theme_textdomain(). fixes #28690. Built from https://develop.svn.wordpress.org/trunk@28924 git-svn-id: http://core.svn.wordpress.org/trunk@28723 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/l10n.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index 05aa52afcc..23642f02f9 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -554,6 +554,8 @@ function load_default_textdomain() { * @param string $domain Unique identifier for retrieving translated strings * @param string $deprecated Use the $plugin_rel_path parameter instead. * @param string $plugin_rel_path Optional. Relative path to WP_PLUGIN_DIR where the .mo file resides. + * Default false. + * @return bool True when textdomain is successfully loaded, false otherwise. */ function load_plugin_textdomain( $domain, $deprecated = false, $plugin_rel_path = false ) { $locale = get_locale(); @@ -662,6 +664,8 @@ function load_theme_textdomain( $domain, $path = false ) { * @since 2.9.0 * * @param string $domain Text domain. Unique identifier for retrieving translated strings. + * @param string $path Optional. Path to the directory containing the .mo file. + * Default false. * @return bool True when the theme textdomain is successfully loaded, false otherwise. */ function load_child_theme_textdomain( $domain, $path = false ) {