Remove init_packages from class-woocommerce

This commit is contained in:
Mike Jolley 2019-06-25 13:12:14 +01:00
parent 6439f2a170
commit 48e1dc5bec
1 changed files with 0 additions and 16 deletions

View File

@ -180,7 +180,6 @@ final class WooCommerce {
register_shutdown_function( array( $this, 'log_errors' ) );
add_action( 'plugins_loaded', array( $this, 'on_plugins_loaded' ), -1 );
add_action( 'plugins_loaded', array( $this, 'init_packages' ) );
add_action( 'after_setup_theme', array( $this, 'setup_environment' ) );
add_action( 'after_setup_theme', array( $this, 'include_template_functions' ), 11 );
add_action( 'init', array( $this, 'init' ), 0 );
@ -192,21 +191,6 @@ final class WooCommerce {
add_action( 'deactivated_plugin', array( $this, 'deactivated_plugin' ) );
}
/**
* Load any WooCommerce packages.
*
* Most packages will have their own init routines, so this is used early once plugins are loaded.
*
* @since 3.7.0
*/
public function init_packages() {
if ( version_compare( PHP_VERSION, '5.6.0', '<' ) ) {
return;
}
\Automattic\WooCommerce\Blocks\Package::init();
\Automattic\WooCommerce\RestApi\Package::init();
}
/**
* Ensures fatal errors are logged so they can be picked up in the status report.
*