mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-11-01 03:12:58 +02:00
Merge pull request #238 from gosukiwi/patch-1
Use the same syntax for all included files. Fixes #238
This commit is contained in:
commit
72cda6eeaf
|
@ -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