Version Description
- Bug fix that was throwing error in the nav menu
Download this release
Release Info
Developer | kylephillips |
Plugin | Nested Pages |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
- app/Entities/NavMenu/NavMenuFrontEnd.php +2 -2
- app/NestedPages.php +1 -1
- nestedpages.php +1 -1
- readme.txt +4 -1
app/Entities/NavMenu/NavMenuFrontEnd.php
CHANGED
@@ -17,13 +17,13 @@ class NavMenuFrontEnd
|
|
17 |
public function __construct()
|
18 |
{
|
19 |
$this->nav_menu_repo = new NavMenuRepository;
|
20 |
-
add_filter('nav_menu_link_attributes', array($this, 'attributeFilter'), 10,
|
21 |
}
|
22 |
|
23 |
/**
|
24 |
* Filter the link attributes on the generated menu
|
25 |
*/
|
26 |
-
public function attributeFilter($atts, $item, $args
|
27 |
{
|
28 |
if ( $this->nav_menu_repo->getMenuID() == null ) return $atts;
|
29 |
if ( !isset($args->menu->term_id) ) return $atts;
|
17 |
public function __construct()
|
18 |
{
|
19 |
$this->nav_menu_repo = new NavMenuRepository;
|
20 |
+
add_filter('nav_menu_link_attributes', array($this, 'attributeFilter'), 10, 3);
|
21 |
}
|
22 |
|
23 |
/**
|
24 |
* Filter the link attributes on the generated menu
|
25 |
*/
|
26 |
+
public function attributeFilter($atts, $item, $args)
|
27 |
{
|
28 |
if ( $this->nav_menu_repo->getMenuID() == null ) return $atts;
|
29 |
if ( !isset($args->menu->term_id) ) return $atts;
|
app/NestedPages.php
CHANGED
@@ -12,7 +12,7 @@ class NestedPages
|
|
12 |
$np_env = 'live';
|
13 |
|
14 |
global $np_version;
|
15 |
-
$np_version = '1.6.
|
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.2';
|
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.
|
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.2
|
7 |
Author: Kyle Phillips
|
8 |
Author URI: https://github.com/kylephillips
|
9 |
Text Domain: nestedpages
|
readme.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
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
|
@@ -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.1 =
|
103 |
* Bug fix in nav menu front end that was throwing error on sites with errors enabled.
|
104 |
|
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
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
+
= 1.6.2 =
|
103 |
+
* Bug fix that was throwing error in the nav menu
|
104 |
+
|
105 |
= 1.6.1 =
|
106 |
* Bug fix in nav menu front end that was throwing error on sites with errors enabled.
|
107 |
|