From 46c78c9dc553af5d9dc1ffc92885816305ccaaa1 Mon Sep 17 00:00:00 2001 From: "James W. Lane III" Date: Fri, 15 Nov 2013 05:35:07 -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/plugin-name.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin-name/plugin-name.php b/plugin-name/plugin-name.php index e9db48a..ef904fd 100644 --- a/plugin-name/plugin-name.php +++ b/plugin-name/plugin-name.php @@ -40,7 +40,7 @@ if ( ! defined( 'WPINC' ) ) { * - replace `class-plugin-name.php` with the name of the plugin's class file * */ -require_once( plugin_dir_path( __FILE__ ) . '/public/class-plugin-name.php' ); +require_once( plugin_dir_path( __FILE__ ) . 'public/class-plugin-name.php' ); /* * Register hooks that are fired when the plugin is activated or deactivated. @@ -84,7 +84,7 @@ add_action( 'plugins_loaded', array( 'Plugin_Name', 'get_instance' ) ); */ if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) { - require_once( plugin_dir_path( __FILE__ ) . '/admin/class-plugin-name-admin.php' ); + require_once( plugin_dir_path( __FILE__ ) . 'admin/class-plugin-name-admin.php' ); add_action( 'plugins_loaded', array( 'Plugin_Name_Admin', 'get_instance' ) ); }