Include functions once. Closes #4991
This commit is contained in:
parent
f1189f5aac
commit
7c4c8f50ea
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue