From 0768adb25e5709aaa10ea6905d7e3328f2c1f4c5 Mon Sep 17 00:00:00 2001 From: "James W. Lane III" Date: Fri, 15 Nov 2013 05:40:35 -0600 Subject: [PATCH] Removed the trailing slash According to http://codex.wordpress.org/Function_Reference/plugin_dir_path, plugin_dir_path gets the filesystem directory path with trailing slash. Even tho two slashes will not cause an error, the extra slash can be removed. --- plugin-name/public/class-plugin-name.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-name/public/class-plugin-name.php b/plugin-name/public/class-plugin-name.php index 988013f..9289f0c 100644 --- a/plugin-name/public/class-plugin-name.php +++ b/plugin-name/public/class-plugin-name.php @@ -257,7 +257,7 @@ class Plugin_Name { $locale = apply_filters( 'plugin_locale', get_locale(), $domain ); load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' ); - load_plugin_textdomain( $domain, FALSE, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' ); + load_plugin_textdomain( $domain, FALSE, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . 'languages/' ); }