Skip to content

Commit

Permalink
release: verson 2.5.1
Browse files Browse the repository at this point in the history
### Bug Fixes
- **Fixes Posts Block Query**: Fixed Posts Block category selection not working.
- **Fixes Blocks Animation**: Fixed Blocks Animation module not working as a standalone plugin.
  • Loading branch information
HardeepAsrani authored Nov 18, 2023
2 parents 72e018a + fc660c4 commit f45b3c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inc/render/class-posts-grid-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ protected function retrieve_posts( $attributes, $count_posts, $page_number, &$to
'order' => $attributes['order'],
'orderby' => $attributes['orderBy'],
'offset' => $offset,
'category' => $categories,
'cat' => $categories,
'suppress_filters' => false,
'no_found_rows' => true,
);
Expand Down
1 change: 1 addition & 0 deletions src/blocks/helpers/block-utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { useEffect, useMemo, useRef, useState } from '@wordpress/element';
/**
* Initiate the global id tracker with an empty list if it is the case.
*/
window.themeisleGutenberg ??= {};
window.themeisleGutenberg.blockIDs ??= [];

/**
Expand Down

0 comments on commit f45b3c1

Please sign in to comment.