GenerateBlocks - Version 1.5.1

Version Description

  • Fix: Require WordPress version 5.9 or higher
Download this release

Release Info

Developer edge22
Plugin Icon 128x128 GenerateBlocks
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5.0 to 1.5.1

Files changed (3) hide show
  1. includes/class-render-blocks.php +4 -1
  2. plugin.php +3 -3
  3. readme.txt +5 -2
includes/class-render-blocks.php CHANGED
@@ -43,7 +43,10 @@ class GenerateBlocks_Render_Block {
43
  */
44
  public function __construct() {
45
  add_action( 'init', array( $this, 'register_blocks' ) );
46
- add_filter( 'render_block', array( $this, 'filter_rendered_blocks' ), 10, 3 );
 
 
 
47
  }
48
 
49
  /**
43
  */
44
  public function __construct() {
45
  add_action( 'init', array( $this, 'register_blocks' ) );
46
+
47
+ if ( version_compare( $GLOBALS['wp_version'], '5.9', '>' ) ) {
48
+ add_filter( 'render_block', array( $this, 'filter_rendered_blocks' ), 10, 3 );
49
+ }
50
  }
51
 
52
  /**
plugin.php CHANGED
@@ -5,8 +5,8 @@
5
  * Description: A small collection of lightweight WordPress blocks that can accomplish nearly anything.
6
  * Author: Tom Usborne
7
  * Author URI: https://tomusborne.com
8
- * Version: 1.5.0
9
- * Requires at least: 5.6
10
  * Requires PHP: 5.6
11
  * License: GPL2+
12
  * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
@@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
19
  exit; // Exit if accessed directly.
20
  }
21
 
22
- define( 'GENERATEBLOCKS_VERSION', '1.5.0' );
23
  define( 'GENERATEBLOCKS_DIR', plugin_dir_path( __FILE__ ) );
24
  define( 'GENERATEBLOCKS_DIR_URL', plugin_dir_url( __FILE__ ) );
25
 
5
  * Description: A small collection of lightweight WordPress blocks that can accomplish nearly anything.
6
  * Author: Tom Usborne
7
  * Author URI: https://tomusborne.com
8
+ * Version: 1.5.1
9
+ * Requires at least: 5.9
10
  * Requires PHP: 5.6
11
  * License: GPL2+
12
  * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
19
  exit; // Exit if accessed directly.
20
  }
21
 
22
+ define( 'GENERATEBLOCKS_VERSION', '1.5.1' );
23
  define( 'GENERATEBLOCKS_DIR', plugin_dir_path( __FILE__ ) );
24
  define( 'GENERATEBLOCKS_DIR_URL', plugin_dir_url( __FILE__ ) );
25
 
readme.txt CHANGED
@@ -2,10 +2,10 @@
2
  Contributors: edge22
3
  Donate link: https://generateblocks.com
4
  Tags: blocks, gutenberg, container, headline, grid, columns, page builder, wysiwyg, block editor
5
- Requires at least: 5.6
6
  Tested up to: 6.0
7
  Requires PHP: 5.6
8
- Stable tag: 1.5.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -85,6 +85,9 @@ GenerateBlocks was built to work hand-in-hand with [GeneratePress](https://gener
85
 
86
  == Changelog ==
87
 
 
 
 
88
  = 1.5.0 =
89
  * New: Dynamic data
90
  * New: Query Loop block
2
  Contributors: edge22
3
  Donate link: https://generateblocks.com
4
  Tags: blocks, gutenberg, container, headline, grid, columns, page builder, wysiwyg, block editor
5
+ Requires at least: 5.9
6
  Tested up to: 6.0
7
  Requires PHP: 5.6
8
+ Stable tag: 1.5.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
85
 
86
  == Changelog ==
87
 
88
+ = 1.5.1 =
89
+ * Fix: Require WordPress version 5.9 or higher
90
+
91
  = 1.5.0 =
92
  * New: Dynamic data
93
  * New: Query Loop block