Skip to content

Commit

Permalink
Merge pull request mailchimp#493 from woocommerce/issue_486_null_acti…
Browse files Browse the repository at this point in the history
…on_check

add null action check to list table display items
  • Loading branch information
rrennick authored Mar 13, 2020
2 parents 51de250 + 7dfb1d6 commit 34996f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/ActionScheduler_ListTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,9 @@ public function prepare_items() {
} catch ( Exception $e ) {
continue;
}
if ( is_a( $action, 'ActionScheduler_NullAction' ) ) {
continue;
}
$this->items[ $action_id ] = array(
'ID' => $action_id,
'hook' => $action->get_hook(),
Expand Down

0 comments on commit 34996f6

Please sign in to comment.