Skip to content

Commit

Permalink
1.0.28
Browse files Browse the repository at this point in the history
  • Loading branch information
stiofan committed Feb 14, 2022
1 parent 35c0d23 commit c3d8a73
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
6 changes: 3 additions & 3 deletions change-log.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
= 1.0.29 =
* Block editor multi-select dropdown style issue - FIXED

= 1.0.28 =
* Some extra escaping block parameters - CHANGED
* Block editor multi-select dropdown style issue - FIXED
* If tinyMCE is undefined the inserter can fail - FIXED
* block_show_advanced() sometimes has no arguments - FIXED

= 1.0.27 =
* Category settings loads only 10 categories on CPT change - FIXED
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ayecode/wp-super-duper",
"version": "2.0.2",
"version": "1.0.28",
"type": "library",
"description": "Lets you create a widget, block and shortcode all from the one file .",
"keywords": ["WordPress","super duper","wp"],
Expand Down
12 changes: 4 additions & 8 deletions wp-super-duper.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
class WP_Super_Duper extends WP_Widget {

public $version = "1.0.27";
public $version = "1.0.28";
public $font_awesome_icon_version = "5.11.2";
public $block_code;
public $options;
Expand Down Expand Up @@ -691,7 +691,7 @@ function sd_insert_shortcode($editor_id) {
$editor_id = '#generate-sections-modal-dialog ' + $editor_id;
tmceActive = jQuery($editor_id).closest('.wp-editor-wrap').hasClass('tmce-active') ? true : false;
}
if (tinyMCE && tinyMCE.activeEditor && tmceActive) {
if (typeof tinyMCE !== 'undefined' && tinyMCE.activeEditor && tmceActive) {
tinyMCE.execCommand('mceInsertContent', false, $shortcode);
} else {
var $txt = jQuery($editor_id);
Expand Down Expand Up @@ -1548,12 +1548,8 @@ public function register_block() {
public function block_show_advanced() {

$show = false;
$arguments = $this->arguments;

if ( empty( $arguments ) ) {
$arguments = $this->get_arguments();
}

$arguments = $this->get_arguments();

if ( ! empty( $arguments ) ) {
foreach ( $arguments as $argument ) {
if ( isset( $argument['advanced'] ) && $argument['advanced'] ) {
Expand Down

0 comments on commit c3d8a73

Please sign in to comment.