Skip to content

Commit

Permalink
Fix deprecated function (#884)
Browse files Browse the repository at this point in the history
* Fix deprecated function

* Changelog
  • Loading branch information
ilyasfoo authored Dec 21, 2022
1 parent b5ec026 commit 2c02da1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion class-wc-calypso-bridge-shared.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function initialize() {
public function add_extension_register_script() {

$is_woo_page = class_exists( 'Automattic\WooCommerce\Admin\Loader' )
&& \Automattic\WooCommerce\Admin\Loader::is_admin_or_embed_page()
&& \Automattic\WooCommerce\Admin\PageController::is_admin_or_embed_page()
? true
: false;

Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ This section describes how to install the plugin and get it working.

== Changelog ==

= Unreleased =
* Fix deprecated function Loader::is_admin_or_embed_page() #884

= 1.9.12 =
* Introduce add-a-domain and launch-your-store tasks in the setup list #879.
* Flatten the WooCommerce menu under a feature gate #879.
Expand Down

0 comments on commit 2c02da1

Please sign in to comment.