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

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.
This commit is contained in:
James W. Lane III 2013-11-15 05:35:07 -06:00
parent 0275b33691
commit 46c78c9dc5

View file

@ -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' ) );
}