Unyson - Version 2.6.7

Version Description

  • Fixed #2053, #2024
Download this release

Release Info

Developer Unyson
Plugin Icon 128x128 Unyson
Version 2.6.7
Comparing to
See all releases

Code changes from version 2.6.6 to 2.6.7

framework/helpers/class-fw-db-options-model.php CHANGED
@@ -77,6 +77,14 @@ abstract class FW_Db_Options_Model {
77
  return self::$instances[$id];
78
  }
79
 
 
 
 
 
 
 
 
 
80
  final public function __construct() {
81
  if (isset(self::$instances[ $this->get_id() ])) {
82
  trigger_error(__CLASS__ .' with id "'. $this->get_id() .'" was already defined', E_USER_ERROR);
@@ -90,7 +98,7 @@ abstract class FW_Db_Options_Model {
90
  private function get_cache_key($key, $item_id, array $extra_data = array()) {
91
  $item_key = $this->_get_cache_key($key, $item_id, $extra_data);
92
 
93
- return 'fw-options-model:'. $this->get_id() .'/'. $key . (empty($item_key) ? '' : '/'. $item_key);
94
  }
95
 
96
  /**
77
  return self::$instances[$id];
78
  }
79
 
80
+ /**
81
+ * @return string
82
+ * @since 2.6.7
83
+ */
84
+ final public function get_main_cache_key() {
85
+ return 'fw-options-model:'. $this->get_id();
86
+ }
87
+
88
  final public function __construct() {
89
  if (isset(self::$instances[ $this->get_id() ])) {
90
  trigger_error(__CLASS__ .' with id "'. $this->get_id() .'" was already defined', E_USER_ERROR);
98
  private function get_cache_key($key, $item_id, array $extra_data = array()) {
99
  $item_key = $this->_get_cache_key($key, $item_id, $extra_data);
100
 
101
+ return $this->get_main_cache_key() .'/'. $key . (empty($item_key) ? '' : '/'. $item_key);
102
  }
103
 
104
  /**
framework/helpers/database.php CHANGED
@@ -558,6 +558,13 @@ class FW_Db_Options_Model_Customizer extends FW_Db_Options_Model {
558
  ));
559
  }
560
 
 
 
 
 
 
 
 
561
  protected function _init() {
562
  /**
563
  * Get a customizer framework option value from the database
@@ -580,6 +587,9 @@ class FW_Db_Options_Model_Customizer extends FW_Db_Options_Model {
580
  function fw_set_db_customizer_option( $option_id = null, $value ) {
581
  FW_Db_Options_Model::_get_instance('customizer')->set(null, $option_id, $value);
582
  }
 
 
 
583
  }
584
  }
585
  new FW_Db_Options_Model_Customizer();
558
  ));
559
  }
560
 
561
+ /**
562
+ * @internal
563
+ */
564
+ public function _reset_cache() {
565
+ FW_Cache::del($this->get_main_cache_key());
566
+ }
567
+
568
  protected function _init() {
569
  /**
570
  * Get a customizer framework option value from the database
587
  function fw_set_db_customizer_option( $option_id = null, $value ) {
588
  FW_Db_Options_Model::_get_instance('customizer')->set(null, $option_id, $value);
589
  }
590
+
591
+ // Fixes https://github.com/ThemeFuse/Unyson/issues/2053
592
+ add_action('customize_preview_init', array($this, '_reset_cache'));
593
  }
594
  }
595
  new FW_Db_Options_Model_Customizer();
framework/includes/option-types/icon-v2/class-fw-option-type-icon-v2.php CHANGED
@@ -35,10 +35,12 @@ class FW_Option_Type_Icon_v2 extends FW_Option_Type
35
  protected function _enqueue_static($id, $option, $data)
36
  {
37
  add_action(
38
- 'admin_footer',
39
  array($this, 'load_templates')
40
  );
41
 
 
 
42
  $this->packs_loader->enqueue_admin_css();
43
 
44
  $static_URI = fw_get_framework_directory_uri(
35
  protected function _enqueue_static($id, $option, $data)
36
  {
37
  add_action(
38
+ 'admin_print_scripts',
39
  array($this, 'load_templates')
40
  );
41
 
42
+ wp_enqueue_media();
43
+
44
  $this->packs_loader->enqueue_admin_css();
45
 
46
  $static_URI = fw_get_framework_directory_uri(
framework/includes/option-types/typography/class-fw-option-type-typography.php CHANGED
@@ -66,8 +66,12 @@ class FW_Option_Type_Typography extends FW_Option_Type
66
  array('jquery', 'underscore', 'fw', 'fw-selectize'),
67
  fw()->manifest->get_version()
68
  );
69
- $fw_typography_fonts = $this->get_fonts();
70
- wp_localize_script('fw-option-' . $this->get_type(), 'fw_typography_fonts', $fw_typography_fonts);
 
 
 
 
71
  }
72
 
73
  /**
66
  array('jquery', 'underscore', 'fw', 'fw-selectize'),
67
  fw()->manifest->get_version()
68
  );
69
+
70
+ wp_localize_script(
71
+ 'fw-option-' . $this->get_type(),
72
+ 'fw_typography_fonts',
73
+ $this->get_fonts()
74
+ );
75
  }
76
 
77
  /**
framework/manifest.php CHANGED
@@ -4,4 +4,4 @@ $manifest = array();
4
 
5
  $manifest['name'] = __('Unyson', 'fw');
6
 
7
- $manifest['version'] = '2.6.6';
4
 
5
  $manifest['name'] = __('Unyson', 'fw');
6
 
7
+ $manifest['version'] = '2.6.7';
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: unyson
3
  Tags: page builder, grid, layout, responsive, back up, backup, db backup, dump, migrate, schedule, search engine optimization, seo, media, slideshow, shortcode, slide, slideshare, slideshow, google sitemaps, sitemaps, analytics, google analytics, calendar, event, events, google maps, learning, lessons, sidebars, breadcrumbs, review, portfolio, framework
4
  Requires at least: 4.4
5
  Tested up to: 4.6
6
- Stable tag: 2.6.6
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -83,6 +83,9 @@ Yes; Unyson will work with any theme.
83
 
84
  == Changelog ==
85
 
 
 
 
86
  = 2.6.6 =
87
  * Disabled File Cache [#2029](https://github.com/ThemeFuse/Unyson/issues/2029)
88
  * Added option-type `addable-popup-full` [#1769](https://github.com/ThemeFuse/Unyson/issues/1769#issuecomment-247054955)
3
  Tags: page builder, grid, layout, responsive, back up, backup, db backup, dump, migrate, schedule, search engine optimization, seo, media, slideshow, shortcode, slide, slideshare, slideshow, google sitemaps, sitemaps, analytics, google analytics, calendar, event, events, google maps, learning, lessons, sidebars, breadcrumbs, review, portfolio, framework
4
  Requires at least: 4.4
5
  Tested up to: 4.6
6
+ Stable tag: 2.6.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
83
 
84
  == Changelog ==
85
 
86
+ = 2.6.7 =
87
+ * Fixed [#2053](https://github.com/ThemeFuse/Unyson/issues/2053), [#2024](https://github.com/ThemeFuse/Unyson/issues/2024)
88
+
89
  = 2.6.6 =
90
  * Disabled File Cache [#2029](https://github.com/ThemeFuse/Unyson/issues/2029)
91
  * Added option-type `addable-popup-full` [#1769](https://github.com/ThemeFuse/Unyson/issues/1769#issuecomment-247054955)
unyson.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Unyson
4
  * Plugin URI: http://unyson.io/
5
  * Description: A free drag & drop framework that comes with a bunch of built in extensions that will help you develop premium themes fast & easy.
6
- * Version: 2.6.6
7
  * Author: ThemeFuse
8
  * Author URI: http://themefuse.com
9
  * License: GPL2+
3
  * Plugin Name: Unyson
4
  * Plugin URI: http://unyson.io/
5
  * Description: A free drag & drop framework that comes with a bunch of built in extensions that will help you develop premium themes fast & easy.
6
+ * Version: 2.6.7
7
  * Author: ThemeFuse
8
  * Author URI: http://themefuse.com
9
  * License: GPL2+