Unyson - Version 2.7.16

Version Description

  • Remove redirects to about Brizy page
Download this release

Release Info

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

Code changes from version 2.7.15 to 2.7.16

framework/core/components/extensions/manager/class--fw-extensions-manager.php CHANGED
@@ -70,7 +70,6 @@ final class _FW_Extensions_Manager
70
  add_action('admin_footer', array($this, '_action_admin_footer'));
71
  add_action('admin_enqueue_scripts', array($this, '_action_enqueue_scripts'));
72
  add_action('admin_notices', array($this, '_action_admin_notices'));
73
- add_action( 'admin_init', array( $this, '_action_admin_init' ) );
74
 
75
  if ($this->can_install()) {
76
  add_action('wp_ajax_fw_extensions_check_direct_fs_access', array($this, '_action_ajax_check_direct_fs_access'));
@@ -3463,22 +3462,6 @@ final class _FW_Extensions_Manager
3463
  ) {
3464
  fw()->extensions->manager->theme_available_extensions_restore();
3465
  }
3466
-
3467
- if ( isset( $data['plugins'] ) && false !== array_search( 'unyson/unyson.php', $data['plugins'] ) ) {
3468
- set_transient( '_fw_brz_redirect_after_update', 1, ( 5 * 60 ) );
3469
- }
3470
- }
3471
-
3472
- public function _action_admin_init() {
3473
- if ( ! get_transient( '_fw_brz_redirect_after_update' ) && get_transient( '_fw_brz_redirect_after_init' ) ) {
3474
- return;
3475
- }
3476
-
3477
- delete_transient( '_fw_brz_redirect_after_update' );
3478
- set_transient( '_fw_brz_redirect_after_init', 1 );
3479
-
3480
- wp_redirect( admin_url( 'admin.php?page=fw-new' ) );
3481
- exit;
3482
  }
3483
 
3484
  /**
70
  add_action('admin_footer', array($this, '_action_admin_footer'));
71
  add_action('admin_enqueue_scripts', array($this, '_action_enqueue_scripts'));
72
  add_action('admin_notices', array($this, '_action_admin_notices'));
 
73
 
74
  if ($this->can_install()) {
75
  add_action('wp_ajax_fw_extensions_check_direct_fs_access', array($this, '_action_ajax_check_direct_fs_access'));
3462
  ) {
3463
  fw()->extensions->manager->theme_available_extensions_restore();
3464
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3465
  }
3466
 
3467
  /**
framework/core/components/theme.php CHANGED
@@ -209,19 +209,21 @@ final class _FW_Component_Theme {
209
  </div>';
210
  }
211
 
212
- //delete_transient( 'fw_brz_admin_notice' );
 
 
213
 
214
- if ( false === get_transient( 'fw_brz_admin_notice' ) && ! defined( 'BRIZY_VERSION' ) && ! ( isset( $_GET['page'] ) && 'fw-new' == $_GET['page'] ) ) {
215
 
216
  $url_install_plugin = is_multisite() ? network_admin_url( 'plugin-install.php?s=brizy&tab=search&type=term' ) : admin_url( 'plugin-install.php?s=brizy&tab=search&type=term' );
217
 
218
  echo
219
  '<div class="notice updated is-dismissible fw-brz-dismiss">
220
- <p class="fw-brz-alert" style="font-size:14px;">' .
221
  esc_html__( 'Try Brizy: A Fast & Easy Way of Creating Pages Visually', 'fw' ) .
222
  ' - <a href="' . admin_url( 'admin.php?page=fw-new' ) . '">' .
223
  __( 'More Details', 'fw' ) .
224
- '</a>
225
  </p>
226
  <p>
227
  <a href="' . $url_install_plugin . '">' .
@@ -274,6 +276,7 @@ final class _FW_Component_Theme {
274
  * @internal
275
  */
276
  public function _action_ajax_brz_dismiss_notice() {
 
277
  $expiration = 3 * ( 60 * 60 * 24 );
278
 
279
  set_transient( 'fw_brz_admin_notice', 1, $expiration );
209
  </div>';
210
  }
211
 
212
+ $noPageAbout = ! ( isset( $_GET['page'] ) && 'fw-new' === $_GET['page'] );
213
+ $noTransient = false === get_transient( 'fw_brz_admin_notice' );
214
+ $isBrizy = ! defined( 'BRIZY_VERSION' ) && ! get_option( 'brizy' );
215
 
216
+ if ( $noTransient && $noPageAbout && $isBrizy ) {
217
 
218
  $url_install_plugin = is_multisite() ? network_admin_url( 'plugin-install.php?s=brizy&tab=search&type=term' ) : admin_url( 'plugin-install.php?s=brizy&tab=search&type=term' );
219
 
220
  echo
221
  '<div class="notice updated is-dismissible fw-brz-dismiss">
222
+ <p style="font-size:14px;">' .
223
  esc_html__( 'Try Brizy: A Fast & Easy Way of Creating Pages Visually', 'fw' ) .
224
  ' - <a href="' . admin_url( 'admin.php?page=fw-new' ) . '">' .
225
  __( 'More Details', 'fw' ) .
226
+ '</a>
227
  </p>
228
  <p>
229
  <a href="' . $url_install_plugin . '">' .
276
  * @internal
277
  */
278
  public function _action_ajax_brz_dismiss_notice() {
279
+
280
  $expiration = 3 * ( 60 * 60 * 24 );
281
 
282
  set_transient( 'fw_brz_admin_notice', 1, $expiration );
framework/manifest.php CHANGED
@@ -4,4 +4,4 @@ $manifest = array();
4
 
5
  $manifest['name'] = __('Unyson', 'fw');
6
 
7
- $manifest['version'] = '2.7.15';
4
 
5
  $manifest['name'] = __('Unyson', 'fw');
6
 
7
+ $manifest['version'] = '2.7.16';
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.15
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.15 =
93
  * Urgent update
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.16
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.16 =
93
+ * Remove redirects to about Brizy page
94
+
95
  = 2.7.15 =
96
  * Urgent update
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.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.7.16
7
  * Author: ThemeFuse
8
  * Author URI: http://themefuse.com
9
  * License: GPL2+