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:
parent
ec4c52c115
commit
042c13b7b1
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ if ( ! defined( 'WPINC' ) ) {
|
||||||
* This action is documented in includes/class-plugin-name-activator.php
|
* This action is documented in includes/class-plugin-name-activator.php
|
||||||
*/
|
*/
|
||||||
function activate_plugin_name() {
|
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();
|
Plugin_Name_Activator::activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ function activate_plugin_name() {
|
||||||
* This action is documented in includes/class-plugin-name-deactivator.php
|
* This action is documented in includes/class-plugin-name-deactivator.php
|
||||||
*/
|
*/
|
||||||
function deactivate_plugin_name() {
|
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();
|
Plugin_Name_Deactivator::deactivate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue