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:
parent
0275b33691
commit
46c78c9dc5
1 changed files with 2 additions and 2 deletions
|
@ -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' ) );
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue