From 2960b6c1c875d52f625d862b6e1a28dd4e6f4110 Mon Sep 17 00:00:00 2001 From: Nikhil Vimal Date: Tue, 4 Nov 2014 16:47:16 -0600 Subject: [PATCH] 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"? --- plugin-name/trunk/plugin-name.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-name/trunk/plugin-name.php b/plugin-name/trunk/plugin-name.php index 2bc4f2b..82d8b1b 100644 --- a/plugin-name/trunk/plugin-name.php +++ b/plugin-name/trunk/plugin-name.php @@ -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.