Include functions once. Closes #4991

This commit is contained in:
Mike Jolley 2014-02-28 13:55:40 +00:00 committed by Coen Jacobs
parent f1189f5aac
commit 7c4c8f50ea
1 changed files with 5 additions and 5 deletions

View File

@ -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' );