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

Use the same syntax for all included files

I was having issues activating the plugin, and it was because of the way the files were beeing included, this fixes it.
This commit is contained in:
Federico Ramirez 2014-11-19 09:25:59 -03:00
parent ec4c52c115
commit 042c13b7b1

View file

@ -35,7 +35,7 @@ if ( ! defined( 'WPINC' ) ) {
* This action is documented in includes/class-plugin-name-activator.php
*/
function activate_plugin_name() {
require_once __DIR__ . 'includes/class-plugin-name-activator.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/class-plugin-name-activator.php';
Plugin_Name_Activator::activate();
}
@ -44,7 +44,7 @@ function activate_plugin_name() {
* This action is documented in includes/class-plugin-name-deactivator.php
*/
function deactivate_plugin_name() {
require_once __DIR__ . 'includes/class-plugin-name-deactivator.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/class-plugin-name-deactivator.php';
Plugin_Name_Deactivator::deactivate();
}