Version Description
- Fixed #4209
Download this release
Release Info
Developer | Unyson |
Plugin | Unyson |
Version | 2.7.25 |
Comparing to | |
See all releases |
Code changes from version 2.7.24 to 2.7.25
- framework/core/extends/class-fw-extension.php +3 -3
- framework/helpers/class-fw-db-options-model.php +1 -1
- framework/helpers/class-fw-request.php +2 -2
- framework/helpers/class-fw-wp-option.php +2 -2
- framework/helpers/database.php +6 -6
- framework/helpers/general.php +1 -1
- framework/manifest.php +1 -1
- readme.txt +5 -2
- unyson.php +1 -1
framework/core/extends/class-fw-extension.php
CHANGED
@@ -106,7 +106,7 @@ abstract class FW_Extension
|
|
106 |
|
107 |
if (!$full_path) {
|
108 |
trigger_error('Extension view not found: '. $name, E_USER_WARNING);
|
109 |
-
return;
|
110 |
}
|
111 |
|
112 |
return fw_render_view($full_path, $view_variables, $return);
|
@@ -384,7 +384,7 @@ abstract class FW_Extension
|
|
384 |
* @param string|null $option_id
|
385 |
* @param mixed $value
|
386 |
*/
|
387 |
-
final public function set_db_settings_option( $option_id = null, $value ) {
|
388 |
fw_set_db_ext_settings_option( $this->get_name(), $option_id, $value );
|
389 |
}
|
390 |
|
@@ -407,7 +407,7 @@ abstract class FW_Extension
|
|
407 |
* @param string|null $multi_key The key of the data you want to set. null - all data
|
408 |
* @param mixed $value
|
409 |
*/
|
410 |
-
final public function set_db_data( $multi_key = null, $value ) {
|
411 |
fw_set_db_extension_data( $this->get_name(), $multi_key, $value );
|
412 |
}
|
413 |
|
106 |
|
107 |
if (!$full_path) {
|
108 |
trigger_error('Extension view not found: '. $name, E_USER_WARNING);
|
109 |
+
return '';
|
110 |
}
|
111 |
|
112 |
return fw_render_view($full_path, $view_variables, $return);
|
384 |
* @param string|null $option_id
|
385 |
* @param mixed $value
|
386 |
*/
|
387 |
+
final public function set_db_settings_option( $option_id = null, $value = '' ) {
|
388 |
fw_set_db_ext_settings_option( $this->get_name(), $option_id, $value );
|
389 |
}
|
390 |
|
407 |
* @param string|null $multi_key The key of the data you want to set. null - all data
|
408 |
* @param mixed $value
|
409 |
*/
|
410 |
+
final public function set_db_data( $multi_key = null, $value = '' ) {
|
411 |
fw_set_db_extension_data( $this->get_name(), $multi_key, $value );
|
412 |
}
|
413 |
|
framework/helpers/class-fw-db-options-model.php
CHANGED
@@ -242,7 +242,7 @@ abstract class FW_Db_Options_Model {
|
|
242 |
}
|
243 |
}
|
244 |
|
245 |
-
final public function set( $item_id = null, $option_id = null, $value, array $extra_data = array() ) {
|
246 |
FW_Cache::del($cache_key_values = $this->get_cache_key('values', $item_id, $extra_data));
|
247 |
FW_Cache::del($cache_key_values_processed = $this->get_cache_key('values:processed', $item_id, $extra_data));
|
248 |
|
242 |
}
|
243 |
}
|
244 |
|
245 |
+
final public function set( $item_id = null, $option_id = null, $value = '', array $extra_data = array() ) {
|
246 |
FW_Cache::del($cache_key_values = $this->get_cache_key('values', $item_id, $extra_data));
|
247 |
FW_Cache::del($cache_key_values_processed = $this->get_cache_key('values:processed', $item_id, $extra_data));
|
248 |
|
framework/helpers/class-fw-request.php
CHANGED
@@ -29,10 +29,10 @@ class FW_Request
|
|
29 |
{
|
30 |
protected static function prepare_key($key)
|
31 |
{
|
32 |
-
return
|
33 |
}
|
34 |
|
35 |
-
protected static function get_set_key($multikey = null, $set_value = null, &$value)
|
36 |
{
|
37 |
$multikey = self::prepare_key($multikey);
|
38 |
|
29 |
{
|
30 |
protected static function prepare_key($key)
|
31 |
{
|
32 |
+
return $key;
|
33 |
}
|
34 |
|
35 |
+
protected static function get_set_key($multikey = null, $set_value = null, &$value = '')
|
36 |
{
|
37 |
$multikey = self::prepare_key($multikey);
|
38 |
|
framework/helpers/class-fw-wp-option.php
CHANGED
@@ -21,7 +21,7 @@ class FW_WP_Option
|
|
21 |
_doing_it_wrong(__FUNCTION__, '$get_original_value parameter was removed', 'Unyson 2.5.8');
|
22 |
}
|
23 |
|
24 |
-
$value = get_option($option_name, null);
|
25 |
|
26 |
if (empty($specific_multi_key) && $specific_multi_key !== '0') {
|
27 |
return is_null($value) ? fw_call( $default_value ) : $value;
|
@@ -36,7 +36,7 @@ class FW_WP_Option
|
|
36 |
* @param string|null $specific_multi_key
|
37 |
* @param array|string|int|bool $set_value
|
38 |
*/
|
39 |
-
public static function set($option_name, $specific_multi_key = null, $set_value)
|
40 |
{
|
41 |
if ($specific_multi_key === null) { // Replace entire option
|
42 |
update_option($option_name, $set_value, false);
|
21 |
_doing_it_wrong(__FUNCTION__, '$get_original_value parameter was removed', 'Unyson 2.5.8');
|
22 |
}
|
23 |
|
24 |
+
$value = get_option($option_name = '', null);
|
25 |
|
26 |
if (empty($specific_multi_key) && $specific_multi_key !== '0') {
|
27 |
return is_null($value) ? fw_call( $default_value ) : $value;
|
36 |
* @param string|null $specific_multi_key
|
37 |
* @param array|string|int|bool $set_value
|
38 |
*/
|
39 |
+
public static function set($option_name = '', $specific_multi_key = null, $set_value = '')
|
40 |
{
|
41 |
if ($specific_multi_key === null) { // Replace entire option
|
42 |
update_option($option_name, $set_value, false);
|
framework/helpers/database.php
CHANGED
@@ -71,7 +71,7 @@ class FW_Db_Options_Model_Settings extends FW_Db_Options_Model {
|
|
71 |
* @param null $option_id Specific option id (accepts multikey). null - all options
|
72 |
* @param mixed $value
|
73 |
*/
|
74 |
-
function fw_set_db_settings_option( $option_id = null, $value ) {
|
75 |
FW_Db_Options_Model_Settings::_get_instance('settings')->set(null, $option_id, $value);
|
76 |
}
|
77 |
}
|
@@ -235,7 +235,7 @@ class FW_Db_Options_Model_Post extends FW_Db_Options_Model {
|
|
235 |
* @param string|null $option_id Specific option id (accepts multikey). null - all options
|
236 |
* @param $value
|
237 |
*/
|
238 |
-
function fw_set_db_post_option( $post_id = null, $option_id = null, $value ) {
|
239 |
FW_Db_Options_Model::_get_instance('post')->set(intval($post_id), $option_id, $value);
|
240 |
}
|
241 |
|
@@ -430,7 +430,7 @@ class FW_Db_Options_Model_Term extends FW_Db_Options_Model {
|
|
430 |
*
|
431 |
* @return null
|
432 |
*/
|
433 |
-
function fw_set_db_term_option( $term_id, $taxonomy, $option_id = null, $value ) {
|
434 |
if ( ! taxonomy_exists( $taxonomy ) ) {
|
435 |
return null;
|
436 |
}
|
@@ -497,7 +497,7 @@ class FW_Db_Options_Model_Extension extends FW_Db_Options_Model {
|
|
497 |
* @param string|null $option_id
|
498 |
* @param mixed $value
|
499 |
*/
|
500 |
-
function fw_set_db_ext_settings_option( $extension_name, $option_id = null, $value ) {
|
501 |
if ( ! fw_ext( $extension_name ) ) {
|
502 |
trigger_error( 'Invalid extension: ' . $extension_name, E_USER_WARNING );
|
503 |
|
@@ -585,7 +585,7 @@ class FW_Db_Options_Model_Customizer extends FW_Db_Options_Model {
|
|
585 |
* @param null $option_id Specific option id (accepts multikey). null - all options
|
586 |
* @param mixed $value
|
587 |
*/
|
588 |
-
function fw_set_db_customizer_option( $option_id = null, $value ) {
|
589 |
FW_Db_Options_Model::_get_instance('customizer')->set(null, $option_id, $value);
|
590 |
}
|
591 |
|
@@ -695,7 +695,7 @@ new FW_Db_Options_Model_Customizer();
|
|
695 |
* @param string|null $multi_key The key of the data you want to set. null - all data
|
696 |
* @param mixed $value
|
697 |
*/
|
698 |
-
function fw_set_db_extension_data( $extension_name, $multi_key = null, $value ) {
|
699 |
if ( ! fw()->extensions->get( $extension_name ) ) {
|
700 |
trigger_error( 'Invalid extension: ' . $extension_name, E_USER_WARNING );
|
701 |
|
71 |
* @param null $option_id Specific option id (accepts multikey). null - all options
|
72 |
* @param mixed $value
|
73 |
*/
|
74 |
+
function fw_set_db_settings_option( $option_id = null, $value = '' ) {
|
75 |
FW_Db_Options_Model_Settings::_get_instance('settings')->set(null, $option_id, $value);
|
76 |
}
|
77 |
}
|
235 |
* @param string|null $option_id Specific option id (accepts multikey). null - all options
|
236 |
* @param $value
|
237 |
*/
|
238 |
+
function fw_set_db_post_option( $post_id = null, $option_id = null, $value = '' ) {
|
239 |
FW_Db_Options_Model::_get_instance('post')->set(intval($post_id), $option_id, $value);
|
240 |
}
|
241 |
|
430 |
*
|
431 |
* @return null
|
432 |
*/
|
433 |
+
function fw_set_db_term_option( $term_id, $taxonomy, $option_id = null, $value = '' ) {
|
434 |
if ( ! taxonomy_exists( $taxonomy ) ) {
|
435 |
return null;
|
436 |
}
|
497 |
* @param string|null $option_id
|
498 |
* @param mixed $value
|
499 |
*/
|
500 |
+
function fw_set_db_ext_settings_option( $extension_name, $option_id = null, $value = '' ) {
|
501 |
if ( ! fw_ext( $extension_name ) ) {
|
502 |
trigger_error( 'Invalid extension: ' . $extension_name, E_USER_WARNING );
|
503 |
|
585 |
* @param null $option_id Specific option id (accepts multikey). null - all options
|
586 |
* @param mixed $value
|
587 |
*/
|
588 |
+
function fw_set_db_customizer_option( $option_id = null, $value = '' ) {
|
589 |
FW_Db_Options_Model::_get_instance('customizer')->set(null, $option_id, $value);
|
590 |
}
|
591 |
|
695 |
* @param string|null $multi_key The key of the data you want to set. null - all data
|
696 |
* @param mixed $value
|
697 |
*/
|
698 |
+
function fw_set_db_extension_data( $extension_name, $multi_key = null, $value = '' ) {
|
699 |
if ( ! fw()->extensions->get( $extension_name ) ) {
|
700 |
trigger_error( 'Invalid extension: ' . $extension_name, E_USER_WARNING );
|
701 |
|
framework/helpers/general.php
CHANGED
@@ -516,7 +516,7 @@ function fw_stripslashes_deep_keys( $value ) {
|
|
516 |
function fw_addslashes_deep_keys( $value ) {
|
517 |
static $magic_quotes = null;
|
518 |
if ( $magic_quotes === null ) {
|
519 |
-
$magic_quotes =
|
520 |
}
|
521 |
|
522 |
if ( is_array( $value ) ) {
|
516 |
function fw_addslashes_deep_keys( $value ) {
|
517 |
static $magic_quotes = null;
|
518 |
if ( $magic_quotes === null ) {
|
519 |
+
$magic_quotes = false;
|
520 |
}
|
521 |
|
522 |
if ( is_array( $value ) ) {
|
framework/manifest.php
CHANGED
@@ -4,4 +4,4 @@ $manifest = array();
|
|
4 |
|
5 |
$manifest['name'] = __('Unyson', 'fw');
|
6 |
|
7 |
-
$manifest['version'] = '2.7.
|
4 |
|
5 |
$manifest['name'] = __('Unyson', 'fw');
|
6 |
|
7 |
+
$manifest['version'] = '2.7.25';
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: unyson
|
3 |
Tags: page builder, editor, drag-and-drop, landing-page, widgets, sidebar, backup, shortcodes, backup, seo, breadcrumbs, portfolio, framework
|
4 |
Requires at least: 4.4
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 2.7.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -89,6 +89,9 @@ Yes; Unyson will work with any theme.
|
|
89 |
|
90 |
== Changelog ==
|
91 |
|
|
|
|
|
|
|
92 |
= 2.7.24 =
|
93 |
* Fixed [#3915](https://github.com/ThemeFuse/Unyson/issues/4029)
|
94 |
|
2 |
Contributors: unyson
|
3 |
Tags: page builder, editor, drag-and-drop, landing-page, widgets, sidebar, backup, shortcodes, backup, seo, breadcrumbs, portfolio, framework
|
4 |
Requires at least: 4.4
|
5 |
+
Tested up to: 5.9
|
6 |
+
Stable tag: 2.7.25
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
89 |
|
90 |
== Changelog ==
|
91 |
|
92 |
+
= 2.7.25 =
|
93 |
+
* Fixed [#4209](https://github.com/ThemeFuse/Unyson/issues/4209)
|
94 |
+
|
95 |
= 2.7.24 =
|
96 |
* Fixed [#3915](https://github.com/ThemeFuse/Unyson/issues/4029)
|
97 |
|
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.7.
|
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.7.25
|
7 |
* Author: ThemeFuse
|
8 |
* Author URI: http://themefuse.com
|
9 |
* License: GPL2+
|