Skip to content

Commit

Permalink
[3rd] Hotfix for WPLister critical error
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-hai committed May 1, 2020
1 parent 90bc96c commit 7192ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thirdparty/wplister.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public static function detect()
{
if ( defined( 'WOOCOMMERCE_VERSION' ) && defined( 'WPLISTER_VERSION' ) ) {
// User reported this will sync correctly.
add_action( 'wplister_revise_inventory_status', array( \WooCommerce::get_instance(), 'backend_purge' ) );
add_action( 'wplister_revise_inventory_status', array( WooCommerce::get_instance(), 'backend_purge' ) );
// Added as a safety measure for WPLister Pro only.
add_action( 'wplister_inventory_status_changed', array( \WooCommerce::get_instance(), 'backend_purge' ) );
add_action( 'wplister_inventory_status_changed', array( WooCommerce::get_instance(), 'backend_purge' ) );
}
}

Expand Down

0 comments on commit 7192ef3

Please sign in to comment.