1
0
Fork 0
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:
Nikhil Vimal 2014-11-04 16:47:16 -06:00
parent 025d61efee
commit 2960b6c1c8

View file

@ -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.