Make WordPress Core

Changeset 12594


Ignore:
Timestamp:
01/02/2010 10:28:05 AM (14 years ago)
Author:
westi
Message:

Mark 2nd param of load_plugin_textdomain() as deprecated. Fixes #11679 props nacin.

File:
1 edited

Legend:

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

    r12459 r12594  
    370370    $locale = get_locale();
    371371
    372     if ( false !== $plugin_rel_path )
     372    if ( false !== $plugin_rel_path ) {
    373373        $path = WP_PLUGIN_DIR . '/' . trim( $plugin_rel_path, '/' );
    374     else if ( false !== $abs_rel_path )
     374    } else if ( false !== $abs_rel_path ) {
     375        _deprecated_argument( __FUNCTION__, '2.7' );
    375376        $path = ABSPATH . trim( $abs_rel_path, '/' );
    376     else
     377    } else {
    377378        $path = WP_PLUGIN_DIR;
    378 
     379    }
     380   
    379381    $mofile = $path . '/'. $domain . '-' . $locale . '.mo';
    380382    return load_textdomain( $domain, $mofile );
Note: See TracChangeset for help on using the changeset viewer.