refactor: use proper dependency tracking
As you can see, there is quite a tangled web of dependency in this project, which is something to look at later. Fix #33
This commit is contained in:
parent
42b4fa03d3
commit
cd0c6bc295
11 changed files with 46 additions and 44 deletions
|
@ -21,9 +21,9 @@
|
|||
* License: GPL v3
|
||||
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
*/
|
||||
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
|
||||
/**
|
||||
* Defines the current Plugin version.
|
||||
*
|
||||
|
@ -50,11 +50,11 @@ const PRODUCTION_ENV = false;
|
|||
*/
|
||||
const PLUGIN_ENTRYPOINT = 'footnotes/footnotes.php';
|
||||
|
||||
// Get all common classes and functions.
|
||||
require_once dirname( __FILE__ ) . '/includes.php';
|
||||
// Requires the core Plugin file.
|
||||
require_once dirname( __FILE__ ) . '/class/init.php';
|
||||
|
||||
// Add links to the ‘Installed Plugins’ page on the WordPress dashboard.
|
||||
add_filter( "plugin_action_links_" . PLUGIN_ENTRYPOINT, array( 'Footnotes_Hooks', 'get_plugin_links' ), 10, 2 );
|
||||
add_filter( 'plugin_action_links_' . PLUGIN_ENTRYPOINT, array( 'Footnotes_Hooks', 'get_plugin_links' ), 10, 2 );
|
||||
|
||||
// Initialize the Plugin.
|
||||
$g_obj_mci_footnotes = new Footnotes();
|
||||
|
|
Reference in a new issue