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

Merge pull request #126 from jameswlane/patch-1

Removed the trailing slash
This commit is contained in:
Tom McFarlin 2013-11-15 05:23:10 -08:00
commit adeb21c1c7

View file

@ -40,7 +40,7 @@ if ( ! defined( 'WPINC' ) ) {
* - replace `class-plugin-name.php` with the name of the plugin's class file * - 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. * 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 ) ) { 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' ) ); add_action( 'plugins_loaded', array( 'Plugin_Name_Admin', 'get_instance' ) );
} }