mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +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
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ register_deactivation_hook( __FILE__, array( 'Plugin_Name_Deactivator', 'deactiv
|
|||
* The core plugin class that is used to define internationalization,
|
||||
* 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.
|
||||
|
|
Loading…
Reference in a new issue