refactor: clean up internal dependency management

This commit is contained in:
Ben Goldsworthy 2021-04-27 08:33:28 +01:00
parent af14415067
commit 5de6719b9a
7 changed files with 38 additions and 11 deletions

View file

@ -12,7 +12,7 @@
* @subpackage footnotes/includes
*/
require_once dirname( __FILE__ ) . '/class-footnotes-config.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-footnotes-config.php';
/**
* Define the internationalization functionality.

View file

@ -14,7 +14,7 @@
* @subpackage footnotes/includes
*/
require_once dirname( __FILE__ ) . '/class-footnotes-convert.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-footnotes-convert.php';
/**
* Loads the settings values, sets to default values if undefined.

View file

@ -117,6 +117,7 @@ class Footnotes {
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-footnotes-config.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-footnotes-convert.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-footnotes-settings.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-footnotes-template.php';
/**
* The class responsible for defining all actions that occur in the admin area.