Flash Toolkit - Version 1.1.5

Version Description

  • 2017-10-06 ==
  • Fix - Repeater field issues regarding two widgets id

=

Download this release

Release Info

Developer ThemeGrill
Plugin Icon 128x128 Flash Toolkit
Version 1.1.5
Comparing to
See all releases

Code changes from version 1.1.4 to 1.1.5

flash-toolkit.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Flash Toolkit
4
  * Plugin URI: http://themegrill.com/theme/flash
5
  * Description: Flash Toolkit is a companion for Flash WordPress theme by ThemeGrill
6
- * Version: 1.1.4
7
  * Author: ThemeGrill
8
  * Author URI: http://themegrill.com
9
  * License: GPLv3 or later
@@ -29,7 +29,7 @@ final class FlashToolkit {
29
  * Plugin version.
30
  * @var string
31
  */
32
- public $version = '1.1.4';
33
 
34
  /**
35
  * Instance of this class.
3
  * Plugin Name: Flash Toolkit
4
  * Plugin URI: http://themegrill.com/theme/flash
5
  * Description: Flash Toolkit is a companion for Flash WordPress theme by ThemeGrill
6
+ * Version: 1.1.5
7
  * Author: ThemeGrill
8
  * Author URI: http://themegrill.com
9
  * License: GPLv3 or later
29
  * Plugin version.
30
  * @var string
31
  */
32
+ public $version = '1.1.5';
33
 
34
  /**
35
  * Instance of this class.
includes/abstracts/views/html-admin-tmpl-repeater.php CHANGED
@@ -13,7 +13,7 @@ $max_field_entries = count( $value ) >= apply_filters( 'flash_toolkit_maximum_re
13
  ?>
14
  <div id="tg-widget-repeater-field" class="accordion-sortables">
15
  <p><label for="<?php echo $this->get_field_id( $key ); ?>"><?php echo esc_html( $setting['label'] ); ?></label></p>
16
- <ul class="tg-widget-repeater-field-items" data-widget_id="<?php echo esc_attr( $this->widget_id );?>">
17
  <?php if ( ! empty( $value ) ) : ?>
18
  <?php foreach ( $value as $field_key => $field ) : ?>
19
  <li class="tg-widget-accordion-item" data-id="<?php echo esc_attr( $field_key ); ?>">
@@ -40,7 +40,7 @@ $max_field_entries = count( $value ) >= apply_filters( 'flash_toolkit_maximum_re
40
  <?php endif; ?>
41
  </div>
42
 
43
- <script type="text/html" id="tmpl-tg-widget-repeater-field-<?php echo esc_attr( $this->widget_id );?>">
44
  <li class="tg-widget-accordion-item open" data-id="<?php echo esc_attr( $repeater_field_id ); ?>">
45
  <div class="accordion-top">
46
  <div class="accordion-title-action"><a class="accordion-action" href="#available-fields"></a></div>
13
  ?>
14
  <div id="tg-widget-repeater-field" class="accordion-sortables">
15
  <p><label for="<?php echo $this->get_field_id( $key ); ?>"><?php echo esc_html( $setting['label'] ); ?></label></p>
16
+ <ul class="tg-widget-repeater-field-items" data-widget_id="<?php echo esc_attr( $this->id );?>">
17
  <?php if ( ! empty( $value ) ) : ?>
18
  <?php foreach ( $value as $field_key => $field ) : ?>
19
  <li class="tg-widget-accordion-item" data-id="<?php echo esc_attr( $field_key ); ?>">
40
  <?php endif; ?>
41
  </div>
42
 
43
+ <script type="text/html" id="tmpl-tg-widget-repeater-field-<?php echo esc_attr( $this->id );?>">
44
  <li class="tg-widget-accordion-item open" data-id="<?php echo esc_attr( $repeater_field_id ); ?>">
45
  <div class="accordion-top">
46
  <div class="accordion-title-action"><a class="accordion-action" href="#available-fields"></a></div>
includes/class-flash-install.php CHANGED
@@ -79,6 +79,14 @@ class FT_Install {
79
  */
80
  public static function install() {
81
  global $wpdb;
 
 
 
 
 
 
 
 
82
 
83
  if ( ! defined( 'FT_INSTALLING' ) ) {
84
  define( 'FT_INSTALLING', true );
@@ -112,6 +120,7 @@ class FT_Install {
112
 
113
  self::update_ft_version();
114
 
 
115
  // Flush rules after install
116
  do_action( 'flash_toolkit_flush_rewrite_rules' );
117
 
79
  */
80
  public static function install() {
81
  global $wpdb;
82
+
83
+ // Check if we are not already running this routine.
84
+ if ( 'yes' === get_transient( 'ft_installing' ) ) {
85
+ return;
86
+ }
87
+
88
+ // If we made it till here nothing is running yet, lets set the transient now.
89
+ set_transient( 'ft_installing', 'yes', MINUTE_IN_SECONDS * 10 );
90
 
91
  if ( ! defined( 'FT_INSTALLING' ) ) {
92
  define( 'FT_INSTALLING', true );
120
 
121
  self::update_ft_version();
122
 
123
+ delete_transient( 'ft_installing' );
124
  // Flush rules after install
125
  do_action( 'flash_toolkit_flush_rewrite_rules' );
126
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: ThemeGrill, shivapoudel
3
  Tags: theme, flash, toolkit, themegrill
4
  Requires at least: 4.0
5
- Tested up to: 4.7
6
- Stable tag: 1.1.4
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -31,6 +31,9 @@ Get free support at http://themegrill.com/support-forum/
31
  * The plugin currently only supports Flash theme.
32
 
33
  == Changelog ==
 
 
 
34
  == 1.1.4 - 2017-08-24 ==
35
  * Tweak - Allow HTML in Widget Textarea Fields
36
  * Tweak - Fix the blog widget style 2 design
2
  Contributors: ThemeGrill, shivapoudel
3
  Tags: theme, flash, toolkit, themegrill
4
  Requires at least: 4.0
5
+ Tested up to: 4.8
6
+ Stable tag: 1.1.5
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
31
  * The plugin currently only supports Flash theme.
32
 
33
  == Changelog ==
34
+ == 1.1.5 - 2017-10-06 ==
35
+ * Fix - Repeater field issues regarding two widgets id
36
+
37
  == 1.1.4 - 2017-08-24 ==
38
  * Tweak - Allow HTML in Widget Textarea Fields
39
  * Tweak - Fix the blog widget style 2 design