Skip to content

Commit

Permalink
Merge pull request #159 from publishpress/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
htmgarcia authored Sep 16, 2020
2 parents 32a2fef + 2cdbb7b commit a6b2226
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 27 deletions.
87 changes: 63 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"braces": "^3.0.2",
"compile-sass": "^1.1.1",
"concurrently": "^5.3.0",
"counterup2": "^1.0.4",
Expand Down
4 changes: 2 additions & 2 deletions src/advanced-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Advanced Gutenberg
* Plugin URI: https://advancedgutenberg.com
* Description: Enhanced tools for Gutenberg editor
* Version: 2.4.5
* Version: 2.4.6
* Tested up to: 5.5.1
* Author: Advanced Gutenberg
* Author URI: https://advancedgutenberg.com
Expand Down Expand Up @@ -75,7 +75,7 @@ function advgb_show_error()
}

if (! defined('ADVANCED_GUTENBERG_VERSION')) {
define('ADVANCED_GUTENBERG_VERSION', '2.4.5');
define('ADVANCED_GUTENBERG_VERSION', '2.4.6');
}

if (! defined('ADVANCED_GUTENBERG_PLUGIN')) {
Expand Down
8 changes: 8 additions & 0 deletions src/incl/advanced-gutenberg-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -4637,6 +4637,14 @@ public function addBlocksStyles($block)
foreach ($inner_block['innerBlocks'] as $j => $inner_block) {
//echo '------' . $inner_block['blockName'] . '(4th level)<br>';
$style_html .= $this->advgb_SetStylesForBlocks($inner_block['attrs'], $inner_block['blockName']);

// Fifth level
if(isset($inner_block['innerBlocks'])){
foreach ($inner_block['innerBlocks'] as $j => $inner_block) {
//echo '--------' . $inner_block['blockName'] . '(5th level)<br>';
$style_html .= $this->advgb_SetStylesForBlocks($inner_block['attrs'], $inner_block['blockName']);
}
}
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: JoomUnited, advancedgutenberg
Tags: gutenberg, gutenberg blocks, advanced gutenberg, editor, blocks
Requires at least: 5.0
Tested up to: 5.5.1
Stable tag: 2.4.5
Stable tag: 2.4.6
Requires PHP: 5.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -127,6 +127,9 @@ The Advanced Gutenberg Custom CSS can be created from the plugin configuration a

== Changelog ==

= 2.4.6 =
* Fix: Support for nested blocks in 5th level

= 2.4.5 =
* Fix: Load Custom Styles in multisites
* Add: Optimize blocks style loading
Expand Down

0 comments on commit a6b2226

Please sign in to comment.