Accordion - Version 2.2.44

Version Description

  • 2022-08-18 - fix - custom script escape issue fixed.
Download this release

Release Info

Developer pickplugins
Plugin Icon 128x128 Accordion
Version 2.2.44
Comparing to
See all releases

Code changes from version 2.2.43 to 2.2.44

accordions.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Accordions by PickPlugins
4
  Plugin URI: https://www.pickplugins.com/item/accordions-html-css3-responsive-accordion-grid-for-wordpress/?ref=dashboard
5
  Description: Fully responsive and mobile ready accordion grid for wordpress.
6
- Version: 2.2.42
7
  Author: PickPlugins
8
  Author URI: http://pickplugins.com
9
  Text Domain: accordions
@@ -23,7 +23,7 @@ class Accordions
23
 
24
  define('accordions_plugin_url', plugins_url('/', __FILE__));
25
  define('accordions_plugin_dir', plugin_dir_path(__FILE__));
26
- define('accordions_version', '2.2.42');
27
  define('accordions_plugin_name', 'Accordions');
28
  define('accordions_plugin_basename', plugin_basename(__FILE__));
29
 
3
  Plugin Name: Accordions by PickPlugins
4
  Plugin URI: https://www.pickplugins.com/item/accordions-html-css3-responsive-accordion-grid-for-wordpress/?ref=dashboard
5
  Description: Fully responsive and mobile ready accordion grid for wordpress.
6
+ Version: 2.2.44
7
  Author: PickPlugins
8
  Author URI: http://pickplugins.com
9
  Text Domain: accordions
23
 
24
  define('accordions_plugin_url', plugins_url('/', __FILE__));
25
  define('accordions_plugin_dir', plugin_dir_path(__FILE__));
26
+ define('accordions_version', '2.2.44');
27
  define('accordions_plugin_name', 'Accordions');
28
  define('accordions_plugin_basename', plugin_basename(__FILE__));
29
 
includes/class-post-meta-accordions-hook.php CHANGED
@@ -1203,7 +1203,7 @@ function accordions_metabox_content_custom_scripts($post_id){
1203
  'title' => __('Custom Js','accordions'),
1204
  'details' => __('You can add custom scripts here, do not use <code>&lt;script&gt; &lt;/script&gt;</code> tag','accordions'),
1205
  'type' => 'scripts_js',
1206
- 'value' => $custom_js,
1207
  'default' => '',
1208
  );
1209
 
1203
  'title' => __('Custom Js','accordions'),
1204
  'details' => __('You can add custom scripts here, do not use <code>&lt;script&gt; &lt;/script&gt;</code> tag','accordions'),
1205
  'type' => 'scripts_js',
1206
+ 'value' => htmlspecialchars_decode($custom_js, ENT_QUOTES),
1207
  'default' => '',
1208
  );
1209
 
readme.txt CHANGED
@@ -4,7 +4,7 @@
4
  Tags: accordion, tabs, FAQ, WooCommerce FAQ Tab, accordion short-code, accordions widget, tab
5
  Requires at least: 3.8
6
  Tested up to: 6.0
7
- Stable tag: 2.2.42
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,6 +139,13 @@ then paste this shortcode anywhere in your page to display accordions<br />
139
 
140
  == Changelog ==
141
 
 
 
 
 
 
 
 
142
 
143
  = 2.2.42 =
144
  * 2022-06-15 - fix - Empty line scripts issue fixed.
4
  Tags: accordion, tabs, FAQ, WooCommerce FAQ Tab, accordion short-code, accordions widget, tab
5
  Requires at least: 3.8
6
  Tested up to: 6.0
7
+ Stable tag: 2.2.44
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 2.2.44 =
143
+ * 2022-08-18 - fix - custom script escape issue fixed.
144
+
145
+
146
+ = 2.2.43 =
147
+ * 2022-08-16 - fix - Minor Security issue fixed.
148
+
149
 
150
  = 2.2.42 =
151
  * 2022-06-15 - fix - Empty line scripts issue fixed.
templates/accordion/accordion-hook.php CHANGED
@@ -219,7 +219,7 @@ function accordions_main_top($atts)
219
 
220
  <?php
221
  if (!empty($custom_css)) {
222
- echo esc_attr($custom_css);
223
  }
224
 
225
  if (!empty($accordions_content)) {
@@ -340,7 +340,7 @@ function accordions_main_top($atts)
340
  }
341
 
342
  ?>
343
- <div post_id="<?php echo esc_attr($post_id); ?>" itemcount="<?php echo esc_attr($item_count); ?>" header_id="header-<?php echo esc_attr($index); ?>" id="header-<?php echo esc_attr($index); ?>" style="" class="accordions-head head<?php echo esc_attr($index); ?> <?php echo esc_attr($header_class); ?>" toggle-text="<?php echo do_shortcode(esc_attr($toggled_text)); ?>" main-text="<?php echo do_shortcode(esc_attr($accordion_header)); ?>">
344
  <?php
345
  if ($icon_position == 'left') :
346
  ?>
@@ -348,11 +348,11 @@ function accordions_main_top($atts)
348
  <span class="accordion-icon-active accordion-plus"><?php echo $active_icon; ?></span>
349
  <span class="accordion-icon-inactive accordion-minus"><?php echo $inactive_icon; ?></span>
350
  </span>
351
- <span id="header-text-<?php echo esc_attr($index); ?>" class="accordions-head-title"><?php echo do_shortcode($accordion_header); ?></span>
352
  <?php
353
  elseif ($icon_position == 'right') :
354
  ?>
355
- <span id="header-text-<?php echo esc_attr($index); ?>" class="accordions-head-title"><?php echo do_shortcode($accordion_header); ?></span>
356
  <span id="accordion-icons-<?php echo esc_attr($index); ?>" class="accordion-icons">
357
  <span class="accordion-icon-active accordion-plus"><?php echo $active_icon; ?></span>
358
  <span class="accordion-icon-inactive accordion-minus"><?php echo $inactive_icon; ?></span>
@@ -360,13 +360,13 @@ function accordions_main_top($atts)
360
  <?php
361
  else :
362
  ?>
363
- <span id="header-text-<?php echo esc_attr($index); ?>" class="accordions-head-title"><?php echo do_shortcode($accordion_header); ?></span>
364
  <?php
365
  endif;
366
  ?>
367
  </div>
368
  <div class="accordion-content content<?php echo esc_attr($index); ?> <?php echo esc_attr($body_class); ?>">
369
- <?php echo $accordion_body; ?>
370
  </div>
371
  <?php
372
  $item_count++;
@@ -612,10 +612,12 @@ function accordions_main_top($atts)
612
 
613
  if (!empty($custom_js)) :
614
  ?>
 
 
615
  <script>
616
  (function($) {
617
  $( document ).ready( function() {
618
- <?php echo ($custom_js); ?>
619
  })})(jQuery);
620
  </script>
621
  <?php
219
 
220
  <?php
221
  if (!empty($custom_css)) {
222
+ echo htmlspecialchars_decode($custom_css);
223
  }
224
 
225
  if (!empty($accordions_content)) {
340
  }
341
 
342
  ?>
343
+ <div post_id="<?php echo esc_attr($post_id); ?>" itemcount="<?php echo esc_attr($item_count); ?>" header_id="header-<?php echo esc_attr($index); ?>" id="header-<?php echo esc_attr($index); ?>" style="" class="accordions-head head<?php echo esc_attr($index); ?> <?php echo esc_attr($header_class); ?>" toggle-text="<?php echo do_shortcode(esc_attr($toggled_text)); ?>" main-text="<?php echo do_shortcode(esc_attr(htmlspecialchars_decode($accordion_header))); ?>">
344
  <?php
345
  if ($icon_position == 'left') :
346
  ?>
348
  <span class="accordion-icon-active accordion-plus"><?php echo $active_icon; ?></span>
349
  <span class="accordion-icon-inactive accordion-minus"><?php echo $inactive_icon; ?></span>
350
  </span>
351
+ <span id="header-text-<?php echo esc_attr($index); ?>" class="accordions-head-title"><?php echo do_shortcode(htmlspecialchars_decode($accordion_header)); ?></span>
352
  <?php
353
  elseif ($icon_position == 'right') :
354
  ?>
355
+ <span id="header-text-<?php echo esc_attr($index); ?>" class="accordions-head-title"><?php echo do_shortcode(htmlspecialchars_decode($accordion_header)); ?></span>
356
  <span id="accordion-icons-<?php echo esc_attr($index); ?>" class="accordion-icons">
357
  <span class="accordion-icon-active accordion-plus"><?php echo $active_icon; ?></span>
358
  <span class="accordion-icon-inactive accordion-minus"><?php echo $inactive_icon; ?></span>
360
  <?php
361
  else :
362
  ?>
363
+ <span id="header-text-<?php echo esc_attr($index); ?>" class="accordions-head-title"><?php echo do_shortcode(htmlspecialchars_decode($accordion_header)); ?></span>
364
  <?php
365
  endif;
366
  ?>
367
  </div>
368
  <div class="accordion-content content<?php echo esc_attr($index); ?> <?php echo esc_attr($body_class); ?>">
369
+ <?php echo htmlspecialchars_decode($accordion_body); ?>
370
  </div>
371
  <?php
372
  $item_count++;
612
 
613
  if (!empty($custom_js)) :
614
  ?>
615
+
616
+
617
  <script>
618
  (function($) {
619
  $( document ).ready( function() {
620
+ <?php echo esc_js($custom_js); ?>
621
  })})(jQuery);
622
  </script>
623
  <?php