From 7c4c8f50ea42dae496641c6794345c6b373e5ab5 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 28 Feb 2014 13:55:40 +0000 Subject: [PATCH] Include functions once. Closes #4991 --- woocommerce.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/woocommerce.php b/woocommerce.php index b7eae6441ae..ead95e50847 100644 --- a/woocommerce.php +++ b/woocommerce.php @@ -277,11 +277,11 @@ final class WooCommerce { * Include required core files used in admin and on the frontend. */ private function includes() { - include( 'includes/wc-core-functions.php' ); - include( 'includes/class-wc-install.php' ); - include( 'includes/class-wc-download-handler.php' ); - include( 'includes/class-wc-comments.php' ); - include( 'includes/class-wc-post-data.php' ); + include_once( 'includes/wc-core-functions.php' ); + include_once( 'includes/class-wc-install.php' ); + include_once( 'includes/class-wc-download-handler.php' ); + include_once( 'includes/class-wc-comments.php' ); + include_once( 'includes/class-wc-post-data.php' ); if ( is_admin() ) { include_once( 'includes/admin/class-wc-admin.php' );