1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-23 04:13:53 +02:00

Merge pull request #72 from GaryJones/feature/trailingslashit

Make WP_LANG_DIR constant safer
This commit is contained in:
Tom McFarlin 2013-08-30 05:10:55 -07:00
commit 1534c48568

View file

@ -139,7 +139,7 @@ class Plugin_Name {
$domain = $this->plugin_slug; $domain = $this->plugin_slug;
$locale = apply_filters( 'plugin_locale', get_locale(), $domain ); $locale = apply_filters( 'plugin_locale', get_locale(), $domain );
load_textdomain( $domain, WP_LANG_DIR . '/' . $domain . '/' . $domain . '-' . $locale . '.mo' ); load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' );
load_plugin_textdomain( $domain, FALSE, basename( dirname( __FILE__ ) ) . '/lang/' ); load_plugin_textdomain( $domain, FALSE, basename( dirname( __FILE__ ) ) . '/lang/' );
} }