GenerateBlocks - Version 1.1.1

Version Description

  • Fix: Undefined index notice when using background images
Download this release

Release Info

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

Code changes from version 1.1.0 to 1.1.1

Files changed (3) hide show
  1. includes/generate-css.php +4 -0
  2. plugin.php +2 -2
  3. readme.txt +4 -1
includes/generate-css.php CHANGED
@@ -242,6 +242,10 @@ function generateblocks_get_dynamic_css( $content = '' ) {
242
  $css->add_property( 'background-color', generateblocks_hex2rgba( $settings['backgroundColor'], $settings['backgroundColorOpacity'] ) );
243
  $css->add_property( 'color', $settings['textColor'] );
244
 
 
 
 
 
245
  $background_image = generateblocks_get_background_image_css( $settings );
246
 
247
  if ( $settings['bgImage'] && 'element' === $settings['bgOptions']['selector'] && $background_image ) {
242
  $css->add_property( 'background-color', generateblocks_hex2rgba( $settings['backgroundColor'], $settings['backgroundColorOpacity'] ) );
243
  $css->add_property( 'color', $settings['textColor'] );
244
 
245
+ if ( ! isset( $settings['bgOptions']['selector'] ) ) {
246
+ $settings['bgOptions']['selector'] = 'element';
247
+ }
248
+
249
  $background_image = generateblocks_get_background_image_css( $settings );
250
 
251
  if ( $settings['bgImage'] && 'element' === $settings['bgOptions']['selector'] && $background_image ) {
plugin.php CHANGED
@@ -5,7 +5,7 @@
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.1.0
9
  * License: GPL2+
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
11
  * Text Domain: generateblocks
@@ -17,7 +17,7 @@ if ( ! defined( 'ABSPATH' ) ) {
17
  exit; // Exit if accessed directly.
18
  }
19
 
20
- define( 'GENERATEBLOCKS_VERSION', '1.1.0' );
21
  define( 'GENERATEBLOCKS_CSS_VERSION', '1.0.2' );
22
  define( 'GENERATEBLOCKS_DIR', plugin_dir_path( __FILE__ ) );
23
  define( 'GENERATEBLOCKS_DIR_URL', plugin_dir_url( __FILE__ ) );
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.1.1
9
  * License: GPL2+
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
11
  * Text Domain: generateblocks
17
  exit; // Exit if accessed directly.
18
  }
19
 
20
+ define( 'GENERATEBLOCKS_VERSION', '1.1.1' );
21
  define( 'GENERATEBLOCKS_CSS_VERSION', '1.0.2' );
22
  define( 'GENERATEBLOCKS_DIR', plugin_dir_path( __FILE__ ) );
23
  define( 'GENERATEBLOCKS_DIR_URL', plugin_dir_url( __FILE__ ) );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: blocks, gutenberg, container, headline, grid, columns, page builder, wysiw
5
  Requires at least: 5.0
6
  Tested up to: 5.4
7
  Requires PHP: 5.6
8
- Stable tag: 1.1.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -75,6 +75,9 @@ GenerateBlocks was built to work hand-in-hand with [GeneratePress](https://gener
75
 
76
  == Changelog ==
77
 
 
 
 
78
  = 1.1.0 =
79
  * New: Persistent responsive controls across blocks
80
  * New: Filter all HTML attributes
5
  Requires at least: 5.0
6
  Tested up to: 5.4
7
  Requires PHP: 5.6
8
+ Stable tag: 1.1.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
75
 
76
  == Changelog ==
77
 
78
+ = 1.1.1 =
79
+ * Fix: Undefined index notice when using background images
80
+
81
  = 1.1.0 =
82
  * New: Persistent responsive controls across blocks
83
  * New: Filter all HTML attributes