Reworking condition to allow reminder badge with corret list for all experiment states and control
This commit is contained in:
parent
46d6e6dd3e
commit
29e521dca0
|
@ -469,15 +469,11 @@ class TaskLists {
|
|||
*/
|
||||
public static function setup_tasks_remaining () {
|
||||
|
||||
$active_list = self::is_experiment_treatment( 'woocommerce_tasklist_setup_experiment_1' ) ? 'setup_experiment_1' : self::is_experiment_treatment( 'woocommerce_tasklist_setup_experiment_2' ) ? 'setup_experiment_1' : null;
|
||||
|
||||
if( is_null( $active_list ) ) {
|
||||
return;
|
||||
}
|
||||
$active_list = self::is_experiment_treatment( 'woocommerce_tasklist_setup_experiment_1' ) ? 'setup_experiment_1' : ( self::is_experiment_treatment( 'woocommerce_tasklist_setup_experiment_2' ) ? 'setup_experiment_2' : 'setup' );
|
||||
|
||||
$setup_list = self::get_list( $active_list );
|
||||
|
||||
if( $setup_list->is_hidden() || $setup_list->is_complete() ) {
|
||||
if( ! $setup_list || $setup_list->is_hidden() || $setup_list->is_complete() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue