Skip to content

Commit

Permalink
Improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-sg-pacheco committed Aug 4, 2021
1 parent 0d2f8c4 commit 200cc9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions popup-notices-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

// Check for active plugins.
if (
! is_plugin_active( 'woocommerce/woocommerce.php' )
|| (
! is_plugin_active( 'woocommerce/woocommerce.php' ) ||
(
'popup-notices-for-woocommerce.php' === basename( __FILE__ ) &&
is_plugin_active( 'popup-notices-for-woocommerce-pro/popup-notices-for-woocommerce-pro.php' ) &&
! empty( $wp_plugin_dir = str_replace( array( '/', '\\' ), DIRECTORY_SEPARATOR, trailingslashit( WP_PLUGIN_DIR ) ) ) &&
Expand Down

0 comments on commit 200cc9f

Please sign in to comment.