Accordion - Version 2.2.21

Version Description

  • 2020-05-23 - update - Enable autoembed default to Yes
    • 2020-05-23 - update - Enable shortcode default to Yes
    • 2020-05-23 - update - Enable auto paragraph default to Yes
Download this release

Release Info

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

Code changes from version 2.2.20 to 2.2.21

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.20
7
  WC requires at least: 3.0.0
8
  WC tested up to: 4.0
9
  Author: PickPlugins
@@ -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.20' );
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.21
7
  WC requires at least: 3.0.0
8
  WC tested up to: 4.0
9
  Author: PickPlugins
23
 
24
  define('accordions_plugin_url', plugins_url('/', __FILE__) );
25
  define('accordions_plugin_dir', plugin_dir_path( __FILE__ ) );
26
+ define('accordions_version', '2.2.21' );
27
  define('accordions_plugin_name', 'Accordions' );
28
  define('accordions_plugin_basename', plugin_basename( __FILE__ ) );
29
 
includes/class-post-meta-accordions-hook.php CHANGED
@@ -238,7 +238,7 @@ function accordions_metabox_content_general($post_id){
238
  'details' => __('Enable autoembed for content.','accordions'),
239
  'type' => 'select',
240
  'value' => $enable_autoembed,
241
- 'default' => 'no',
242
  'args' => array(
243
  'no' => __('No','accordions'),
244
  'yes' => __('Yes','accordions'),
@@ -254,7 +254,7 @@ function accordions_metabox_content_general($post_id){
254
  'details' => __('Enable shortcode for content.','accordions'),
255
  'type' => 'select',
256
  'value' => $enable_shortcode,
257
- 'default' => 'no',
258
  'args' => array(
259
  'no' => __('No','accordions'),
260
  'yes' => __('Yes','accordions'),
@@ -270,7 +270,7 @@ function accordions_metabox_content_general($post_id){
270
  'details' => __('Enable wpautop for content.','accordions'),
271
  'type' => 'select',
272
  'value' => $enable_wpautop,
273
- 'default' => 'no',
274
  'args' => array(
275
  'no' => __('No','accordions'),
276
  'yes' => __('Yes','accordions'),
238
  'details' => __('Enable autoembed for content.','accordions'),
239
  'type' => 'select',
240
  'value' => $enable_autoembed,
241
+ 'default' => 'yes',
242
  'args' => array(
243
  'no' => __('No','accordions'),
244
  'yes' => __('Yes','accordions'),
254
  'details' => __('Enable shortcode for content.','accordions'),
255
  'type' => 'select',
256
  'value' => $enable_shortcode,
257
+ 'default' => 'yes',
258
  'args' => array(
259
  'no' => __('No','accordions'),
260
  'yes' => __('Yes','accordions'),
270
  'details' => __('Enable wpautop for content.','accordions'),
271
  'type' => 'select',
272
  'value' => $enable_wpautop,
273
+ 'default' => 'yes',
274
  'args' => array(
275
  'no' => __('No','accordions'),
276
  'yes' => __('Yes','accordions'),
includes/functions.php CHANGED
@@ -424,12 +424,6 @@ function accordions_nested_shortcode_content($string, $child_tag='restab'){
424
  }
425
 
426
 
427
-
428
-
429
-
430
-
431
-
432
-
433
  add_filter('the_content','accordions_preview_content');
434
  function accordions_preview_content($content){
435
  if(is_singular('accordions')){
@@ -441,8 +435,6 @@ function accordions_preview_content($content){
441
  }
442
 
443
 
444
-
445
-
446
  function accordions_ajax_import_json(){
447
 
448
  $response = array();
424
  }
425
 
426
 
 
 
 
 
 
 
427
  add_filter('the_content','accordions_preview_content');
428
  function accordions_preview_content($content){
429
  if(is_singular('accordions')){
435
  }
436
 
437
 
 
 
438
  function accordions_ajax_import_json(){
439
 
440
  $response = array();
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: 5.4
7
- Stable tag: 2.2.20
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,6 +139,11 @@ then paste this shortcode anywhere in your page to display accordions<br />
139
 
140
  == Changelog ==
141
 
 
 
 
 
 
142
  = 2.2.20 =
143
  * 2020-04-25 - add - hide for schema by section.
144
 
4
  Tags: accordion, tabs, FAQ, WooCommerce FAQ Tab, accordion short-code, accordions widget, tab
5
  Requires at least: 3.8
6
  Tested up to: 5.4
7
+ Stable tag: 2.2.21
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.21 =
143
+ * 2020-05-23 - update - Enable autoembed default to Yes
144
+ * 2020-05-23 - update - Enable shortcode default to Yes
145
+ * 2020-05-23 - update - Enable auto paragraph default to Yes
146
+
147
  = 2.2.20 =
148
  * 2020-04-25 - add - hide for schema by section.
149
 
templates/accordion/accordion-hook.php CHANGED
@@ -284,6 +284,9 @@ function accordions_main_items($atts){
284
 
285
  $post_id = isset($atts['id']) ? $atts['id'] : '';
286
  $accordions_options = get_post_meta($post_id,'accordions_options', true);
 
 
 
287
  $accordions_options = !empty($accordions_options) ? $accordions_options : accordions_old_options($post_id);
288
 
289
  $accordions_content = isset($accordions_options['content']) ? $accordions_options['content'] : array();
@@ -291,6 +294,8 @@ function accordions_main_items($atts){
291
  $enable_wpautop = isset($accordions_options['enable_wpautop']) ? $accordions_options['enable_wpautop'] : 'yes';
292
  $enable_autoembed = isset($accordions_options['enable_autoembed']) ? $accordions_options['enable_autoembed'] : 'yes';
293
 
 
 
294
  $header = isset($accordions_options['header']) ? $accordions_options['header'] : array();
295
  $header_class = isset($header['class']) ? $header['class'] : '';
296
 
284
 
285
  $post_id = isset($atts['id']) ? $atts['id'] : '';
286
  $accordions_options = get_post_meta($post_id,'accordions_options', true);
287
+ //var_dump($post_id);
288
+
289
+
290
  $accordions_options = !empty($accordions_options) ? $accordions_options : accordions_old_options($post_id);
291
 
292
  $accordions_content = isset($accordions_options['content']) ? $accordions_options['content'] : array();
294
  $enable_wpautop = isset($accordions_options['enable_wpautop']) ? $accordions_options['enable_wpautop'] : 'yes';
295
  $enable_autoembed = isset($accordions_options['enable_autoembed']) ? $accordions_options['enable_autoembed'] : 'yes';
296
 
297
+
298
+
299
  $header = isset($accordions_options['header']) ? $accordions_options['header'] : array();
300
  $header_class = isset($header['class']) ? $header['class'] : '';
301