plugin updates

This commit is contained in:
Tony Volpe
2024-07-16 13:57:46 +00:00
parent 41f50eacc4
commit 8f93917880
1529 changed files with 259452 additions and 25451 deletions

View File

@@ -69,6 +69,14 @@ class WC_Autoloader {
return;
}
// The Legacy REST API was removed in WooCommerce 9.0, but some servers still have
// the includes/class-wc-api.php file after they upgrade, which causes a fatal error when executing
// "class_exists('WC_API')". This will prevent this error, while still making the class visible
// when it's provided by the WooCommerce Legacy REST API plugin.
if ( 'wc_api' === $class ) {
return;
}
$file = $this->get_file_name_from_class( $class );
$path = '';