Skip to content

Commit

Permalink
Fix unit test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Nov 13, 2023
1 parent a950a27 commit 5636008
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function get_items( $request ) {
if ( ! isset( $query_args['source'] ) || in_array( 'core', $query_args['source'], true ) ) {
$categories = WP_Block_Pattern_Categories_Registry::get_instance()->get_all_registered();
foreach ( $categories as $category ) {
if ( in_array( $category['label'], $unique_categories, true ) || 'query' === $category['name'] ) {
if ( in_array( $category['label'], $unique_categories, true ) ) {
continue;
}
$prepared_category = $this->prepare_item_for_response( $category, $request );
Expand Down

0 comments on commit 5636008

Please sign in to comment.