Version Description
- Fixed #3480,#3474,#3468
Download this release
Release Info
Developer | Unyson |
Plugin | Unyson |
Version | 2.7.18 |
Comparing to | |
See all releases |
Code changes from version 2.7.17 to 2.7.18
- framework/core/components/backend.php +11 -2
- framework/extensions/update/class-fw-extension-update.php +7 -3
- framework/extensions/update/extensions/github-update/class-fw-extension-github-update.php +1 -1
- framework/extensions/update/views/updates-list.php +1 -1
- framework/helpers/general.php +1 -1
- framework/includes/hooks.php +1 -1
- framework/manifest.php +1 -1
- readme.txt +4 -1
- unyson.php +1 -3
framework/core/components/backend.php
CHANGED
@@ -680,6 +680,7 @@ final class _FW_Component_Backend {
|
|
680 |
$values = fw_get_db_post_option( $post->ID );
|
681 |
|
682 |
foreach ( $collected as $id => &$option ) {
|
|
|
683 |
if ( isset( $option['options'] ) && ( $option['type'] === 'box' || $option['type'] === 'group' ) ) {
|
684 |
$context = isset( $option['context'] ) ? $option['context'] : 'normal';
|
685 |
$priority = isset( $option['priority'] ) ? $option['priority'] : 'default';
|
@@ -691,7 +692,7 @@ final class _FW_Component_Backend {
|
|
691 |
$post_type,
|
692 |
$context,
|
693 |
$priority,
|
694 |
-
$this->render_options( $option['options'], $values )
|
695 |
);
|
696 |
} else { // this is not a box, wrap it in auto-generated box
|
697 |
add_meta_box(
|
@@ -708,7 +709,15 @@ final class _FW_Component_Backend {
|
|
708 |
}
|
709 |
|
710 |
public function render_meta_box( $post, $args ) {
|
711 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
712 |
}
|
713 |
|
714 |
/**
|
680 |
$values = fw_get_db_post_option( $post->ID );
|
681 |
|
682 |
foreach ( $collected as $id => &$option ) {
|
683 |
+
|
684 |
if ( isset( $option['options'] ) && ( $option['type'] === 'box' || $option['type'] === 'group' ) ) {
|
685 |
$context = isset( $option['context'] ) ? $option['context'] : 'normal';
|
686 |
$priority = isset( $option['priority'] ) ? $option['priority'] : 'default';
|
692 |
$post_type,
|
693 |
$context,
|
694 |
$priority,
|
695 |
+
array( 'fw_box_html' => $this->render_options( $option['options'], $values ) )
|
696 |
);
|
697 |
} else { // this is not a box, wrap it in auto-generated box
|
698 |
add_meta_box(
|
709 |
}
|
710 |
|
711 |
public function render_meta_box( $post, $args ) {
|
712 |
+
if ( empty( $args['args'] ) ) {
|
713 |
+
return;
|
714 |
+
}
|
715 |
+
|
716 |
+
if ( isset( $args['args']['fw_box_html'] ) ) {
|
717 |
+
echo $args['args']['fw_box_html'];
|
718 |
+
} elseif ( ! is_array( $args['args'] ) ) {
|
719 |
+
echo $args['args'];
|
720 |
+
}
|
721 |
}
|
722 |
|
723 |
/**
|
framework/extensions/update/class-fw-extension-update.php
CHANGED
@@ -114,7 +114,7 @@ class FW_Extension_Update extends FW_Extension {
|
|
114 |
|
115 |
++ $data['counts']['total'];
|
116 |
|
117 |
-
if ( $this->
|
118 |
// no matter how many extensions, display as one update
|
119 |
break;
|
120 |
}
|
@@ -128,6 +128,10 @@ class FW_Extension_Update extends FW_Extension {
|
|
128 |
return $data;
|
129 |
}
|
130 |
|
|
|
|
|
|
|
|
|
131 |
private function get_updates( $force_check = false ) {
|
132 |
$cache_key = 'fw_ext_update/updates';
|
133 |
|
@@ -944,12 +948,12 @@ class FW_Extension_Update extends FW_Extension {
|
|
944 |
|
945 |
$skin->set_result( true );
|
946 |
|
947 |
-
if ( ! $this->
|
948 |
$skin->decrement_extension_update_count( $extension_name );
|
949 |
}
|
950 |
}
|
951 |
|
952 |
-
if ( $this->
|
953 |
$skin->decrement_extension_update_count( $extension_name );
|
954 |
}
|
955 |
|
114 |
|
115 |
++ $data['counts']['total'];
|
116 |
|
117 |
+
if ( $this->ext_as_one_update() ) {
|
118 |
// no matter how many extensions, display as one update
|
119 |
break;
|
120 |
}
|
128 |
return $data;
|
129 |
}
|
130 |
|
131 |
+
public function ext_as_one_update() {
|
132 |
+
return apply_filters( 'fw_extensions_as_one_update', $this->get_config( 'extensions_as_one_update' ) );
|
133 |
+
}
|
134 |
+
|
135 |
private function get_updates( $force_check = false ) {
|
136 |
$cache_key = 'fw_ext_update/updates';
|
137 |
|
948 |
|
949 |
$skin->set_result( true );
|
950 |
|
951 |
+
if ( ! $this->ext_as_one_update() ) {
|
952 |
$skin->decrement_extension_update_count( $extension_name );
|
953 |
}
|
954 |
}
|
955 |
|
956 |
+
if ( $this->ext_as_one_update() ) {
|
957 |
$skin->decrement_extension_update_count( $extension_name );
|
958 |
}
|
959 |
|
framework/extensions/update/extensions/github-update/class-fw-extension-github-update.php
CHANGED
@@ -171,7 +171,7 @@ class FW_Extension_Github_Update extends FW_Ext_Update_Service {
|
|
171 |
);
|
172 |
}
|
173 |
|
174 |
-
if ( is_wp_error( $latest_version ) ) {
|
175 |
/**
|
176 |
* Internet connection problems or Github API requests limit reached.
|
177 |
* Cache fake version to prevent requests to Github API on every refresh.
|
171 |
);
|
172 |
}
|
173 |
|
174 |
+
if ( is_wp_error( $latest_version ) && is_admin() ) {
|
175 |
/**
|
176 |
* Internet connection problems or Github API requests limit reached.
|
177 |
* Cache fake version to prevent requests to Github API on every refresh.
|
framework/extensions/update/views/updates-list.php
CHANGED
@@ -66,7 +66,7 @@
|
|
66 |
<p><?php echo sprintf( __( 'You have the latest version of %s Extensions.', 'fw' ), fw()->manifest->get_name() ); ?></p>
|
67 |
<?php else: ?>
|
68 |
<?php
|
69 |
-
$one_update_mode = fw()->extensions->get( 'update' )->
|
70 |
|
71 |
foreach ( $updates['extensions'] as $extension ) {
|
72 |
if ( is_wp_error( $extension ) ) {
|
66 |
<p><?php echo sprintf( __( 'You have the latest version of %s Extensions.', 'fw' ), fw()->manifest->get_name() ); ?></p>
|
67 |
<?php else: ?>
|
68 |
<?php
|
69 |
+
$one_update_mode = fw()->extensions->get( 'update' )->ext_as_one_update();
|
70 |
|
71 |
foreach ( $updates['extensions'] as $extension ) {
|
72 |
if ( is_wp_error( $extension ) ) {
|
framework/helpers/general.php
CHANGED
@@ -1303,7 +1303,7 @@ function fw_get_google_fonts_v2() {
|
|
1303 |
( $saved_data['last_update'] + $ttl < time() )
|
1304 |
) {
|
1305 |
$response = wp_remote_get( apply_filters( 'fw_googleapis_webfonts_url',
|
1306 |
-
'
|
1307 |
$body = wp_remote_retrieve_body( $response );
|
1308 |
|
1309 |
if (
|
1303 |
( $saved_data['last_update'] + $ttl < time() )
|
1304 |
) {
|
1305 |
$response = wp_remote_get( apply_filters( 'fw_googleapis_webfonts_url',
|
1306 |
+
'https://google-webfonts-cache.unyson.io/v1/webfonts' ) );
|
1307 |
$body = wp_remote_retrieve_body( $response );
|
1308 |
|
1309 |
if (
|
framework/includes/hooks.php
CHANGED
@@ -144,7 +144,7 @@
|
|
144 |
* @internal
|
145 |
*/
|
146 |
function _fw_filter_github_api_url( $url ) {
|
147 |
-
return '
|
148 |
}
|
149 |
|
150 |
add_filter( 'fw_github_api_url', '_fw_filter_github_api_url' );
|
144 |
* @internal
|
145 |
*/
|
146 |
function _fw_filter_github_api_url( $url ) {
|
147 |
+
return 'https://github-api-cache.unyson.io';
|
148 |
}
|
149 |
|
150 |
add_filter( 'fw_github_api_url', '_fw_filter_github_api_url' );
|
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.18';
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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: 4.9.6
|
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.17 =
|
93 |
* Fixed [#3442](https://github.com/ThemeFuse/Unyson/issues/3442),[#3397](https://github.com/ThemeFuse/Unyson/issues/3397),[#3399](https://github.com/ThemeFuse/Unyson/issues/3399)
|
94 |
|
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: 4.9.6
|
6 |
+
Stable tag: 2.7.18
|
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.18 =
|
93 |
+
* Fixed [#3480](https://github.com/ThemeFuse/Unyson/issues/3480),[#3474](https://github.com/ThemeFuse/Unyson/issues/3474),[#3468](https://github.com/ThemeFuse/Unyson/issues/3468)
|
94 |
+
|
95 |
= 2.7.17 =
|
96 |
* Fixed [#3442](https://github.com/ThemeFuse/Unyson/issues/3442),[#3397](https://github.com/ThemeFuse/Unyson/issues/3397),[#3399](https://github.com/ThemeFuse/Unyson/issues/3399)
|
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+
|
@@ -132,8 +132,6 @@ if (defined('FW')) {
|
|
132 |
* After plugin successfully updated
|
133 |
*/
|
134 |
do_action( 'fw_plugin_post_update' );
|
135 |
-
|
136 |
-
wp_redirect( admin_url( 'admin.php?page=fw-new' ) );
|
137 |
}
|
138 |
|
139 |
return $result;
|
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.18
|
7 |
* Author: ThemeFuse
|
8 |
* Author URI: http://themefuse.com
|
9 |
* License: GPL2+
|
132 |
* After plugin successfully updated
|
133 |
*/
|
134 |
do_action( 'fw_plugin_post_update' );
|
|
|
|
|
135 |
}
|
136 |
|
137 |
return $result;
|