mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Merge pull request #2719 from woocommerce/PCP-3794_Fix-frontend-notes-query
Check Query only done in backend (3794)
This commit is contained in:
commit
16f75c6297
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ class CompatModule implements ServiceModule, ExtendingModule, ExecutableModule {
|
||||||
add_action(
|
add_action(
|
||||||
'woocommerce_init',
|
'woocommerce_init',
|
||||||
function() {
|
function() {
|
||||||
if ( is_callable( array( WC(), 'is_wc_admin_active' ) ) && WC()->is_wc_admin_active() && class_exists( 'Automattic\WooCommerce\Admin\Notes\Notes' ) ) {
|
if ( is_admin() && is_callable( array( WC(), 'is_wc_admin_active' ) ) && WC()->is_wc_admin_active() && class_exists( 'Automattic\WooCommerce\Admin\Notes\Notes' ) ) {
|
||||||
PPEC\DeactivateNote::init();
|
PPEC\DeactivateNote::init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue