Version Description
- Bug fix Critical error that was overriding existing menu items outside of the Nested Pages generated menu. Other menus are now unaltered on save.
Download this release
Release Info
Developer | kylephillips |
Plugin | Nested Pages |
Version | 1.3.8 |
Comparing to | |
See all releases |
Code changes from version 1.3.7 to 1.3.8
- app/Activation/Activate.php +1 -1
- app/Entities/NavMenu/NavMenuRepository.php +10 -1
- app/Entities/NavMenu/NavMenuSync.php +1 -0
- app/NestedPages.php +1 -1
- nestedpages.php +1 -1
- readme.txt +7 -1
app/Activation/Activate.php
CHANGED
@@ -63,7 +63,7 @@ class Activate {
|
|
63 |
private function setOptions()
|
64 |
{
|
65 |
if ( !get_option('nestedpages_menusync') ){
|
66 |
-
update_option('nestedpages_menusync', '
|
67 |
}
|
68 |
}
|
69 |
|
63 |
private function setOptions()
|
64 |
{
|
65 |
if ( !get_option('nestedpages_menusync') ){
|
66 |
+
update_option('nestedpages_menusync', 'nosync');
|
67 |
}
|
68 |
}
|
69 |
|
app/Entities/NavMenu/NavMenuRepository.php
CHANGED
@@ -27,8 +27,17 @@ class NavMenuRepository {
|
|
27 |
'posts_per_page' => 1,
|
28 |
'meta_key' => '_menu_item_object_id',
|
29 |
'meta_value' => $id,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
));
|
31 |
-
return ( $meta_query->have_posts() ) ?
|
|
|
|
|
32 |
}
|
33 |
|
34 |
|
27 |
'posts_per_page' => 1,
|
28 |
'meta_key' => '_menu_item_object_id',
|
29 |
'meta_value' => $id,
|
30 |
+
'tax_query' => array(
|
31 |
+
array(
|
32 |
+
'taxonomy' => 'nav_menu',
|
33 |
+
'field' => 'id',
|
34 |
+
'terms' => $this->getMenuID(),
|
35 |
+
),
|
36 |
+
),
|
37 |
));
|
38 |
+
return ( $meta_query->have_posts() ) ?
|
39 |
+
$meta_query->posts[0]->ID :
|
40 |
+
$this->getLinkMenuItemXFN($id);
|
41 |
}
|
42 |
|
43 |
|
app/Entities/NavMenu/NavMenuSync.php
CHANGED
@@ -22,6 +22,7 @@ abstract class NavMenuSync {
|
|
22 |
|
23 |
public function __construct()
|
24 |
{
|
|
|
25 |
$this->nav_menu_repo = new NavMenuRepository;
|
26 |
$this->setMenuID();
|
27 |
}
|
22 |
|
23 |
public function __construct()
|
24 |
{
|
25 |
+
if ( get_option('nestedpages_menusync') !== 'sync' ) return;
|
26 |
$this->nav_menu_repo = new NavMenuRepository;
|
27 |
$this->setMenuID();
|
28 |
}
|
app/NestedPages.php
CHANGED
@@ -12,7 +12,7 @@ class NestedPages {
|
|
12 |
$np_env = 'live';
|
13 |
|
14 |
global $np_version;
|
15 |
-
$np_version = '1.3.
|
16 |
|
17 |
if ( is_admin() ) $app = new NestedPages\Bootstrap;
|
18 |
}
|
12 |
$np_env = 'live';
|
13 |
|
14 |
global $np_version;
|
15 |
+
$np_version = '1.3.8';
|
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.3.
|
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.3.8
|
7 |
Author: Kyle Phillips
|
8 |
Author URI: https://github.com/kylephillips
|
9 |
Text Domain: nestedpages
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.1
|
7 |
-
Stable tag: 1.3.
|
8 |
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -85,6 +85,9 @@ If you have WordPress SEO by Yoast installed, your page score indicators are sho
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
88 |
= 1.3.7 =
|
89 |
* Bug fix - error when deleting the generated menu
|
90 |
|
@@ -182,6 +185,9 @@ If you have WordPress SEO by Yoast installed, your page score indicators are sho
|
|
182 |
|
183 |
== Upgrade Notice ==
|
184 |
|
|
|
|
|
|
|
185 |
= 1.3.4 =
|
186 |
Minor bug fixes and expanded menu functionality.
|
187 |
|
4 |
Tags: pages, admin, nested, tree view, page tree, sort, quick edit, structure
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 1.3.7
|
8 |
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
85 |
|
86 |
== Changelog ==
|
87 |
|
88 |
+
= 1.3.8 =
|
89 |
+
* Bug fix – Critical error that was overriding existing menu items outside of the Nested Pages generated menu. Other menus are now unaltered on save.
|
90 |
+
|
91 |
= 1.3.7 =
|
92 |
* Bug fix - error when deleting the generated menu
|
93 |
|
185 |
|
186 |
== Upgrade Notice ==
|
187 |
|
188 |
+
= 1.3.8 =
|
189 |
+
Critical bug fix in saving menus. Existing menus outside of the generated menu now unaltered.
|
190 |
+
|
191 |
= 1.3.4 =
|
192 |
Minor bug fixes and expanded menu functionality.
|
193 |
|