Update deprecated method call.
This commit is contained in:
parent
05a4884188
commit
71dd3e0d12
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue