Update deprecated method call in `tools/create-extension` (#38706)

This commit is contained in:
Barry Hughes 2023-06-14 17:06:58 -07:00 committed by GitHub
commit bd696c0f90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -9,9 +9,9 @@
* Register the JS and CSS.
*/
function add_extension_register_script() {
if (
! method_exists( 'Automattic\WooCommerce\Admin\Loader', 'is_admin_or_embed_page' ) ||
! \Automattic\WooCommerce\Admin\Loader::is_admin_or_embed_page()
if (
! method_exists( 'Automattic\WooCommerce\Admin\PageController', 'is_admin_or_embed_page' ) ||
! \Automattic\WooCommerce\Admin\PageController::is_admin_or_embed_page()
) {
return;
}