Update deprecated method call in `tools/create-extension` (#38706)
This commit is contained in:
commit
bd696c0f90
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue