Nested Pages - Version 1.6.1

Version Description

  • Bug fix in nav menu front end that was throwing error on sites with errors enabled.
Download this release

Release Info

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

Code changes from version 1.6.0 to 1.6.1

app/Entities/NavMenu/NavMenuFrontEnd.php CHANGED
@@ -25,6 +25,8 @@ class NavMenuFrontEnd
25
  */
26
  public function attributeFilter($atts, $item, $args, $depth)
27
  {
 
 
28
  if ( $args->menu->term_id !== $this->nav_menu_repo->getMenuID() ) return $atts;
29
 
30
  // Remove the rel= attribute created from saving the menu object for syncing
25
  */
26
  public function attributeFilter($atts, $item, $args, $depth)
27
  {
28
+ if ( $this->nav_menu_repo->getMenuID() == null ) return $atts;
29
+ if ( !isset($args->menu->term_id) ) return $atts;
30
  if ( $args->menu->term_id !== $this->nav_menu_repo->getMenuID() ) return $atts;
31
 
32
  // Remove the rel= attribute created from saving the menu object for syncing
app/NestedPages.php CHANGED
@@ -12,7 +12,7 @@ class NestedPages
12
  $np_env = 'live';
13
 
14
  global $np_version;
15
- $np_version = '1.6.0';
16
 
17
  if ( is_admin() ) $app = new NestedPages\Bootstrap;
18
  if ( !is_admin() ) $app = new NestedPages\FrontEndBootstrap;
12
  $np_env = 'live';
13
 
14
  global $np_version;
15
+ $np_version = '1.6.1';
16
 
17
  if ( is_admin() ) $app = new NestedPages\Bootstrap;
18
  if ( !is_admin() ) $app = new NestedPages\FrontEndBootstrap;
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 enhancing quick edit. Includes an auto-generated menu to match the nested interface, support for all post types and more.
6
- Version: 1.6.0
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 enhancing quick edit. Includes an auto-generated menu to match the nested interface, support for all post types and more.
6
+ Version: 1.6.1
7
  Author: Kyle Phillips
8
  Author URI: https://github.com/kylephillips
9
  Text Domain: nestedpages
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Nested Pages ===
2
  Contributors: kylephillips
3
  Donate link: http://nestedpages.com/
4
  Tags: pages, admin, nested, tree view, page tree, sort, quick edit, structure
5
  Requires at least: 3.8
6
  Tested up to: 4.6
7
- Stable tag: 1.5.4
8
 
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -99,6 +99,9 @@ As of version 1.6, yes. Visit Settings > Nested Pages > Post Types to configure
99
 
100
  == Changelog ==
101
 
 
 
 
102
  = 1.6.0 =
103
  * Redesign of post type settings page, with additional options added.
104
  * Thumbnail support added to nested/sort view. Visit Settings > Nested Pages > Post Types to enable post thumbnails and set options.
1
+ === Nested Pages ===
2
  Contributors: kylephillips
3
  Donate link: http://nestedpages.com/
4
  Tags: pages, admin, nested, tree view, page tree, sort, quick edit, structure
5
  Requires at least: 3.8
6
  Tested up to: 4.6
7
+ Stable tag: 1.6.1
8
 
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
99
 
100
  == Changelog ==
101
 
102
+ = 1.6.1 =
103
+ * Bug fix in nav menu front end that was throwing error on sites with errors enabled.
104
+
105
  = 1.6.0 =
106
  * Redesign of post type settings page, with additional options added.
107
  * Thumbnail support added to nested/sort view. Visit Settings > Nested Pages > Post Types to enable post thumbnails and set options.