1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-22 11:53:53 +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:
Tom McFarlin 2014-11-19 13:59:21 -05:00
commit 72cda6eeaf

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();
}