Update deprecated method call.

This commit is contained in:
barryhughes 2023-06-13 14:40:31 -07:00
parent 05a4884188
commit 71dd3e0d12
1 changed files with 2 additions and 2 deletions

View File

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