Skip to content

Commit

Permalink
Merge pull request #128 from publishpress/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
htmgarcia authored Aug 17, 2020
2 parents 4c30574 + 1ea98fb commit 7903c90
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
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.2
* Version: 2.4.3
* Tested up to: 5.5
* 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.2');
define('ADVANCED_GUTENBERG_VERSION', '2.4.3');
}

if (! defined('ADVANCED_GUTENBERG_PLUGIN')) {
Expand Down
15 changes: 14 additions & 1 deletion src/incl/advanced-gutenberg-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -5327,10 +5327,23 @@ private function setConfigValue($valueList, $valueToGet, $default = '')
* @since 2.4.2
* @param $blockName
* @param $blockAttrs
* @return string
* @return string CSS Styles
*/
public function advgb_SetStylesForBlocks($blockAttrs, $blockName)
{
// Load common CSS
if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG === true) {
wp_enqueue_style(
'advgb_blocks_styles',
plugins_url('assets/css/blocks_styles/blocks.css', dirname(__FILE__))
);
} else {
wp_enqueue_style(
'advgb_blocks_styles_min',
plugins_url('assets/css/blocks_styles/blocks.min.css', dirname(__FILE__))
);
}

$html_style = '';

switch($blockName) {
Expand Down
7 changes: 5 additions & 2 deletions 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
Stable tag: 2.4.2
Stable tag: 2.4.3
Requires PHP: 5.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -128,8 +128,11 @@ The Advanced Gutenberg Custom CSS can be created from the plugin configuration a

== Changelog ==

= 2.4.3 =
* Fix: Load common CSS for nested blocks

= 2.4.2 =
* Fix: Styles loading in frontend for nested blocks in WordPress 5.5
* Fix: Styles not loading in frontend for nested blocks in WordPress 5.5

= 2.4.1 =
* Fix: Border width for Advanced Button Block
Expand Down

0 comments on commit 7903c90

Please sign in to comment.