Post Grid - Version 2.2.1

Version Description

  • 2022-11-30 - fix - PHP fatal error fixed for block categories.
Download this release

Release Info

Developer pickplugins
Plugin Icon 128x128 Post Grid
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2.0 to 2.2.1

Files changed (3) hide show
  1. post-grid.php +2 -2
  2. readme.txt +5 -2
  3. src/functions-blocks.php +11 -7
post-grid.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Post Grid Combo
4
  Plugin URI: https://www.pickplugins.com/post-grid
5
  Description: Post Grid Combo is most popular for creating custom post type grids and Gutenberg block bundles.
6
- Version: 2.2.0
7
  Author: PickPlugins
8
  Author URI: https://www.pickplugins.com/
9
  License: GPLv2 or later
@@ -26,7 +26,7 @@ if (!class_exists('PostGrid')) {
26
  define('post_grid_plugin_dir', plugin_dir_path(__FILE__));
27
  define('post_grid_plugin_basename', plugin_basename(__FILE__));
28
  define('post_grid_plugin_name', 'Post Grid Combo');
29
- define('post_grid_version', '2.2.0');
30
  define('post_grid_server_url', 'https://www.pickplugins.com/demo/post-grid/');
31
 
32
 
3
  Plugin Name: Post Grid Combo
4
  Plugin URI: https://www.pickplugins.com/post-grid
5
  Description: Post Grid Combo is most popular for creating custom post type grids and Gutenberg block bundles.
6
+ Version: 2.2.1
7
  Author: PickPlugins
8
  Author URI: https://www.pickplugins.com/
9
  License: GPLv2 or later
26
  define('post_grid_plugin_dir', plugin_dir_path(__FILE__));
27
  define('post_grid_plugin_basename', plugin_basename(__FILE__));
28
  define('post_grid_plugin_name', 'Post Grid Combo');
29
+ define('post_grid_version', '2.2.1');
30
  define('post_grid_server_url', 'https://www.pickplugins.com/demo/post-grid/');
31
 
32
 
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: PickPlugins
3
  Donate link: https://www.pickplugins.com/post-grid
4
  Tags: post grid, grid, custom post grid, post type grid, grid display, category filter, custom post, filter, filtering, grid, layout, list, masonry, post, post filter, post layout, taxonomy, taxonomy filter,
5
- Requires at least: 3.8
6
  Tested up to: 6.1
7
- Stable tag: 2.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -223,6 +223,9 @@ then paste this shortcode anywhere in your page to display grid<br />
223
  == Changelog ==
224
 
225
 
 
 
 
226
  = 2.2.0 =
227
  * 2022-08-13 - update - Rebanding the plugin name "Post Grid" to "Post Grid Combo"
228
  * 2022-08-13 - add - Added sevral Gutenberg blocks
2
  Contributors: PickPlugins
3
  Donate link: https://www.pickplugins.com/post-grid
4
  Tags: post grid, grid, custom post grid, post type grid, grid display, category filter, custom post, filter, filtering, grid, layout, list, masonry, post, post filter, post layout, taxonomy, taxonomy filter,
5
+ Requires at least: 6.0
6
  Tested up to: 6.1
7
+ Stable tag: 2.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
223
  == Changelog ==
224
 
225
 
226
+ = 2.2.1 =
227
+ * 2022-11-30 - fix - PHP fatal error fixed for block categories.
228
+
229
  = 2.2.0 =
230
  * 2022-08-13 - update - Rebanding the plugin name "Post Grid" to "Post Grid Combo"
231
  * 2022-08-13 - add - Added sevral Gutenberg blocks
src/functions-blocks.php CHANGED
@@ -301,15 +301,19 @@ add_filter('block_categories_all', 'post_grid_block_categories', 10, 2);
301
 
302
  function post_grid_block_categories($categories, $post)
303
  {
304
- return array_merge(
305
- array(
306
  array(
307
- 'slug' => 'post-grid',
308
- 'title' => __('Post Grid Combo', 'boilerplate'),
 
 
309
  ),
310
- ),
311
- $categories,
312
- );
 
 
313
  }
314
 
315
 
301
 
302
  function post_grid_block_categories($categories, $post)
303
  {
304
+ if (!empty($categories)) {
305
+ return array_merge(
306
  array(
307
+ array(
308
+ 'slug' => 'post-grid',
309
+ 'title' => __('Post Grid Combo', 'boilerplate'),
310
+ ),
311
  ),
312
+ $categories,
313
+ );
314
+ } else {
315
+ return $categories;
316
+ }
317
  }
318
 
319