Unyson - Version 2.4.16

Version Description

  • Fixed #1178, #1179, #1169, #1085
Download this release

Release Info

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

Code changes from version 2.4.15 to 2.4.16

CONTRIBUTING.md CHANGED
@@ -22,4 +22,4 @@ At this point you're waiting on us to merge your pull request. We'll review all
22
 
23
  * [General GitHub documentation](http://help.github.com/)
24
  * [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
25
- * [Unyson Docs](http://unyson-docs.themefuse.com/)
22
 
23
  * [General GitHub documentation](http://help.github.com/)
24
  * [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
25
+ * [Unyson Docs](http://manual.unyson.io/)
README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Unyson Framework [ ![Download](https://static.md/c1cea378c63f839fbede18687134423f.jpeg) ](https://github.com/ThemeFuse/Unyson/releases/latest)
2
 
3
  [Unyson](http://unyson.io/) is a framework for [WordPress](http://wordpress.org/) that facilitates the development of a theme.
4
 
1
+ # [Unyson](https://wordpress.org/plugins/unyson/) Framework [ ![Download](https://static.md/c1cea378c63f839fbede18687134423f.jpeg) ](https://github.com/ThemeFuse/Unyson/releases/latest)
2
 
3
  [Unyson](http://unyson.io/) is a framework for [WordPress](http://wordpress.org/) that facilitates the development of a theme.
4
 
framework/helpers/general.php CHANGED
@@ -1518,7 +1518,7 @@ function fw_string_to_icon_html($icon, array $attributes = array()) {
1518
  * @since 2.4.10
1519
  */
1520
  function fw_get_json_last_error_message() {
1521
- switch (json_last_error()) {
1522
  case JSON_ERROR_NONE:
1523
  return null; // __('No errors', 'fw');
1524
  break;
1518
  * @since 2.4.10
1519
  */
1520
  function fw_get_json_last_error_message() {
1521
+ switch (function_exists('json_last_error') ? json_last_error() : -1) {
1522
  case JSON_ERROR_NONE:
1523
  return null; // __('No errors', 'fw');
1524
  break;
framework/includes/option-types/switch/class-fw-option-type-switch.php CHANGED
@@ -110,11 +110,11 @@ class FW_Option_Type_Switch extends FW_Option_Type
110
  } else {
111
  $tmp_json = json_decode($input_value);
112
 
113
- /*
114
- * Check if parsing is successfuly.
115
  * If it's not - leave $input_value as it is.
116
  */
117
- if (json_last_error() === JSON_ERROR_NONE) {
118
  $input_value = $tmp_json;
119
  }
120
 
110
  } else {
111
  $tmp_json = json_decode($input_value);
112
 
113
+ /**
114
+ * Check if parsing is successful.
115
  * If it's not - leave $input_value as it is.
116
  */
117
+ if (!is_null($tmp_json)) {
118
  $input_value = $tmp_json;
119
  }
120
 
framework/includes/option-types/switch/static/js/scripts.js CHANGED
@@ -4,6 +4,7 @@ jQuery(document).ready(function ($) {
4
 
5
  fwEvents.on('fw:options:init', function (data) {
6
  data.$elements.find('.'+ optionTypeClass +':not(.fw-option-initialized)')
 
7
  .find('input[type="checkbox"]')
8
  .on('change', function(){
9
  var $this = $(this),
@@ -29,7 +30,6 @@ jQuery(document).ready(function ($) {
29
  value: JSON.parse(value)
30
  });
31
  })
32
- .adaptiveSwitch()
33
- .addClass('fw-option-initialized');
34
  });
35
  });
4
 
5
  fwEvents.on('fw:options:init', function (data) {
6
  data.$elements.find('.'+ optionTypeClass +':not(.fw-option-initialized)')
7
+ .addClass('fw-option-initialized')
8
  .find('input[type="checkbox"]')
9
  .on('change', function(){
10
  var $this = $(this),
30
  value: JSON.parse(value)
31
  });
32
  })
33
+ .adaptiveSwitch();
 
34
  });
35
  });
framework/includes/option-types/wp-editor/static/js/scripts.js CHANGED
@@ -25,7 +25,10 @@
25
  var dynamicId = $textarea.attr('id');
26
  if (dynamicId === "textarea_dynamic_id") {
27
 
28
- window.tinyMCE.execCommand("mceRemoveEditor", false, dynamicId);
 
 
 
29
  $('#qt_' + dynamicId + '_toolbar').remove();
30
 
31
  var id = 'wp-editor-textarea-' + fw.randomMD5();
25
  var dynamicId = $textarea.attr('id');
26
  if (dynamicId === "textarea_dynamic_id") {
27
 
28
+ if(window.tinyMCE !== undefined){
29
+ window.tinyMCE.execCommand("mceRemoveEditor", false, dynamicId);
30
+ }
31
+
32
  $('#qt_' + dynamicId + '_toolbar').remove();
33
 
34
  var id = 'wp-editor-textarea-' + fw.randomMD5();
framework/manifest.php CHANGED
@@ -4,4 +4,4 @@ $manifest = array();
4
 
5
  $manifest['name'] = __('Unyson', 'fw');
6
 
7
- $manifest['version'] = '2.4.15';
4
 
5
  $manifest['name'] = __('Unyson', 'fw');
6
 
7
+ $manifest['version'] = '2.4.16';
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Unyson ===
2
- Contributors: unyson, themefusecom
3
  Tags: page builder, cms, 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.0.0
5
  Tested up to: 4.4
6
- Stable tag: 2.4.15
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -11,7 +11,7 @@ A simple and easy way to build a powerful website.
11
 
12
  == Description ==
13
 
14
- [Unyson](http://unyson.themefuse.com/) - A free drag & drop framework that comes with a bunch of built in extensions that will help you develop premium themes fast & easy.
15
 
16
  [vimeo https://vimeo.com/113008662]
17
 
@@ -83,6 +83,9 @@ Yes; Unyson will work with any theme.
83
 
84
  == Changelog ==
85
 
 
 
 
86
  = 2.4.15 =
87
  * Fixed [#1164](https://github.com/ThemeFuse/Unyson/issues/1164), [#1080](https://github.com/ThemeFuse/Unyson/issues/1080), [#1006](https://github.com/ThemeFuse/Unyson/issues/1006), [#1139](https://github.com/ThemeFuse/Unyson/pull/1139), [#1152](https://github.com/ThemeFuse/Unyson/pull/1152), [#1157](https://github.com/ThemeFuse/Unyson/pull/1157)
88
 
1
  === Unyson ===
2
+ Contributors: unyson
3
  Tags: page builder, cms, 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.0.0
5
  Tested up to: 4.4
6
+ Stable tag: 2.4.16
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
11
 
12
  == Description ==
13
 
14
+ [Unyson](http://unyson.io/) - A free drag & drop framework that comes with a bunch of built in extensions that will help you develop premium themes fast & easy.
15
 
16
  [vimeo https://vimeo.com/113008662]
17
 
83
 
84
  == Changelog ==
85
 
86
+ = 2.4.16 =
87
+ * Fixed [#1178](https://github.com/ThemeFuse/Unyson/issues/1178), [#1179](https://github.com/ThemeFuse/Unyson/issues/1179), [#1169](https://github.com/ThemeFuse/Unyson/issues/1169), [#1085](https://github.com/ThemeFuse/Unyson/issues/1085)
88
+
89
  = 2.4.15 =
90
  * Fixed [#1164](https://github.com/ThemeFuse/Unyson/issues/1164), [#1080](https://github.com/ThemeFuse/Unyson/issues/1080), [#1006](https://github.com/ThemeFuse/Unyson/issues/1006), [#1139](https://github.com/ThemeFuse/Unyson/pull/1139), [#1152](https://github.com/ThemeFuse/Unyson/pull/1152), [#1157](https://github.com/ThemeFuse/Unyson/pull/1157)
91
 
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.4.15
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.4.16
7
  * Author: ThemeFuse
8
  * Author URI: http://themefuse.com
9
  * License: GPL2+