Skip to content

Commit

Permalink
Merge pull request #22 from migueldamota/feat/use-pre-intialized-classes
Browse files Browse the repository at this point in the history
Use pre initialized classes for bulk action handlers
  • Loading branch information
dennisnissle authored Nov 21, 2023
2 parents 0af3ac8 + 8669a9f commit f8a9ad5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,12 @@ public static function get_bulk_action_handlers() {
);

foreach ( $handlers as $key => $handler ) {

if ( is_object( $handler ) && is_a( $handler, 'Vendidero\Germanized\Shipments\Admin\BulkActionHandler' ) ) {
self::$bulk_handlers[ $key ] = $handler;
continue;
}

self::$bulk_handlers[ $key ] = new $handler();
}
}
Expand Down

0 comments on commit f8a9ad5

Please sign in to comment.