Nested Pages - Version 1.5.2

Version Description

  • Fixed bug when upgrading in an install with sync disabled.
Download this release

Release Info

Developer kylephillips
Plugin Icon 128x128 Nested Pages
Version 1.5.2
Comparing to
See all releases

Code changes from version 1.5.1 to 1.5.2

app/Activation/Updates/Updates.php CHANGED
@@ -122,9 +122,10 @@ class Updates
122
  */
123
  private function clearMenu()
124
  {
125
- if ( version_compare( $this->current_version, '1.5.1', '<' ) ){
126
  $menu_id = $this->nav_menu_repo->getMenuID();
127
- $this->nav_menu_repo->clearMenu($menu_id);
 
128
  $syncer = new NavMenuSyncListing;
129
  $syncer->sync();
130
  }
122
  */
123
  private function clearMenu()
124
  {
125
+ if ( version_compare( $this->current_version, '1.5.2', '<' ) ){
126
  $menu_id = $this->nav_menu_repo->getMenuID();
127
+ if ( $menu_id ) $this->nav_menu_repo->clearMenu($menu_id);
128
+ if ( get_option('nestedpages_menusync') !== 'sync' ) return;
129
  $syncer = new NavMenuSyncListing;
130
  $syncer->sync();
131
  }
app/NestedPages.php CHANGED
@@ -12,7 +12,7 @@ class NestedPages
12
  $np_env = 'live';
13
 
14
  global $np_version;
15
- $np_version = '1.5.1';
16
 
17
  if ( is_admin() ) $app = new NestedPages\Bootstrap;
18
  }
12
  $np_env = 'live';
13
 
14
  global $np_version;
15
+ $np_version = '1.5.2';
16
 
17
  if ( is_admin() ) $app = new NestedPages\Bootstrap;
18
  }
nestedpages.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Nested Pages
4
  Plugin URI: http://nestedpages.com
5
  Description: Provides an intuitive drag and drop interface for managing pages in the Wordpress admin, while maintaining quick edit functionality.
6
- Version: 1.5.1
7
  Author: Kyle Phillips
8
  Author URI: https://github.com/kylephillips
9
  Text Domain: nestedpages
3
  Plugin Name: Nested Pages
4
  Plugin URI: http://nestedpages.com
5
  Description: Provides an intuitive drag and drop interface for managing pages in the Wordpress admin, while maintaining quick edit functionality.
6
+ Version: 1.5.2
7
  Author: Kyle Phillips
8
  Author URI: https://github.com/kylephillips
9
  Text Domain: nestedpages
readme.txt CHANGED
@@ -89,6 +89,9 @@ If you have WordPress SEO by Yoast installed, your page score indicators are sho
89
 
90
  == Changelog ==
91
 
 
 
 
92
  = 1.5.1 =
93
  * Bug fix where hidden nav items in the nested view were deleting nav items from other menus.
94
  * Updated German Translation (Thanks to Martin Wecke)
89
 
90
  == Changelog ==
91
 
92
+ = 1.5.2 =
93
+ * Fixed bug when upgrading in an install with sync disabled.
94
+
95
  = 1.5.1 =
96
  * Bug fix where hidden nav items in the nested view were deleting nav items from other menus.
97
  * Updated German Translation (Thanks to Martin Wecke)