Priority fixes for various existing hook documentation.

Props kpdesign.
See #26869

Built from https://develop.svn.wordpress.org/trunk@28083


git-svn-id: http://core.svn.wordpress.org/trunk@27914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes
2014-04-12 00:01:15 +00:00
parent eb54438f17
commit 5e51ea9940
10 changed files with 48 additions and 28 deletions

View File

@@ -53,7 +53,7 @@ function get_locale() {
if ( empty( $locale ) )
$locale = 'en_US';
// duplicate_hook
/** This filter is documented in wp-includes/l10n.php */
return apply_filters( 'locale', $locale );
}
@@ -424,9 +424,9 @@ function load_textdomain( $domain, $mofile ) {
*
* @since 2.9.0
*
* @param boolean Whether to override the text domain. Default false.
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
* @param string $mofile Path to the MO file.
* @param bool $override Whether to override the text domain. Default false.
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
* @param string $mofile Path to the MO file.
*/
$plugin_override = apply_filters( 'override_load_textdomain', false, $domain, $mofile );
@@ -479,12 +479,12 @@ function unload_textdomain( $domain ) {
global $l10n;
/**
* Filter text text domain for loading translation.
* Filter the text domain for loading translation.
*
* @since 3.0.0
*
* @param boolean Whether to override unloading the text domain. Default false.
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
* @param bool $override Whether to override unloading the text domain. Default false.
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
*/
$plugin_override = apply_filters( 'override_unload_textdomain', false, $domain );
@@ -591,7 +591,7 @@ function load_plugin_textdomain( $domain, $deprecated = false, $plugin_rel_path
* @return bool True when textdomain is successfully loaded, false otherwise.
*/
function load_muplugin_textdomain( $domain, $mu_plugin_rel_path = '' ) {
// duplicate_hook
/** This filter is documented in wp-includes/l10n.php */
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
$path = trailingslashit( WPMU_PLUGIN_DIR . '/' . ltrim( $mu_plugin_rel_path, '/' ) );