mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-10-31 19:03:00 +02:00
Fixing require() vs require_once()
See : https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/issues/222. I believe this was in favor of doing it "correctly"?
This commit is contained in:
parent
025d61efee
commit
2960b6c1c8
|
@ -50,7 +50,7 @@ register_deactivation_hook( __FILE__, array( 'Plugin_Name_Deactivator', 'deactiv
|
||||||
* The core plugin class that is used to define internationalization,
|
* The core plugin class that is used to define internationalization,
|
||||||
* dashboard-specific hooks, and public-facing site hooks.
|
* dashboard-specific hooks, and public-facing site hooks.
|
||||||
*/
|
*/
|
||||||
require_once plugin_dir_path( __FILE__ ) . 'includes/class-plugin-name.php';
|
require plugin_dir_path( __FILE__ ) . 'includes/class-plugin-name.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Begins execution of the plugin.
|
* Begins execution of the plugin.
|
||||||
|
|
Loading…
Reference in a new issue