Version Description
= 1.3.12 = Resolves issue with custom user roles/permissions and deleting posts. Important patch for sites using custom user roles. Thanks to Yuksel Beyti for finding/patching.
= 1.3.10 = Resolves deprecated function issue with SEO by Yoast update v1.7.3. Critical for sites running both Nested Pages and WordPress SEO by Yoast
= 1.3.8 = Critical bug fix in saving menus. Existing menus outside of the generated menu now unaltered.
= 1.3.4 = Minor bug fixes and expanded menu functionality.
= 1.3.3 = Russian translation added along with minor bug fixes.
= 1.3.2 = Minor bug fixes in menu.
= 1.3.1 = Date fields in Quick Edit windows are now replaced with a date picker and formatted time. If the formatting conflicts with your specific locale, disable the datepicker under Settings > Nested Pages > General.
= 1.3.0 = All post types are now supported. Also includes minor bug fixes and UI improvements.
= 1.2.1 = Bug fix when using custom roles.
= 1.2 = PHP 5.3.2 now required Nested Pages will not install on older versions of PHP. If you are running less than 5.3.2, continue to use Nested Pages version 1.1.9.
= 1.1.9 = Italian translation included along with minor bug fixes.
= 1.1.8 = New Child Pages Interface, various UI enhancements
= 1.1.6 = Minor UI enhancements and bug fixes.
= 1.1.5 = Various bug fixes in the menu system and localization.
= 1.1.4 = Added additional quick edit functionality along with UI enhancements.
= 1.1.3 = Added option to rename the generated nav menu.
= 1.1.2 = Includes fix for pages view that was preventing draft and private pages from being loaded.
= 1.1 = Several new features have been added in version 1.1, including: saved toggle states, additional menu options, trash functionality, ability to add "link" menu items, and more.
Release Info
Developer | kylephillips |
Plugin | Nested Pages |
Version | 1.6.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.3.1 to 1.6.3.2
- app/NestedPages.php +1 -1
- app/RedirectsFrontEnd.php +10 -2
- nestedpages.php +1 -1
@@ -12,7 +12,7 @@ class NestedPages
|
|
12 |
$np_env = 'live';
|
13 |
|
14 |
global $np_version;
|
15 |
-
$np_version = '1.6.3.
|
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.3.2';
|
16 |
|
17 |
if ( is_admin() ) $app = new NestedPages\Bootstrap;
|
18 |
if ( !is_admin() ) $app = new NestedPages\FrontEndBootstrap;
|
@@ -33,6 +33,15 @@ class RedirectsFrontEnd
|
|
33 |
$segments = explode('/', $wp->request);
|
34 |
$slug = basename($slug);
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
$redirect = false;
|
37 |
if ( count($segments) == 1 ) return;
|
38 |
|
@@ -53,9 +62,8 @@ class RedirectsFrontEnd
|
|
53 |
'post_type' => 'any',
|
54 |
'posts_per_page' => 1
|
55 |
);
|
56 |
-
$page_args['post_parent'] = ( isset($parent_post) && $redirect ) ? $parent_post[0]->ID :
|
57 |
$page = get_posts($page_args);
|
58 |
-
|
59 |
if ( !$page ) return;
|
60 |
|
61 |
unset($wp->query_vars['attachment']);
|
33 |
$segments = explode('/', $wp->request);
|
34 |
$slug = basename($slug);
|
35 |
|
36 |
+
// If this is a redirect link, strip out the np-r and go to the original
|
37 |
+
if ( substr($slug, -4) == 'np-r' ){
|
38 |
+
$slug = substr($slug, 0, -5);
|
39 |
+
$wp->request = $slug;
|
40 |
+
$wp->query_vars['pagename'] = $slug;
|
41 |
+
$wp->query_vars['name'] = $slug;
|
42 |
+
return;
|
43 |
+
};
|
44 |
+
|
45 |
$redirect = false;
|
46 |
if ( count($segments) == 1 ) return;
|
47 |
|
62 |
'post_type' => 'any',
|
63 |
'posts_per_page' => 1
|
64 |
);
|
65 |
+
$page_args['post_parent'] = ( isset($parent_post) && $redirect ) ? $parent_post[0]->ID : null;
|
66 |
$page = get_posts($page_args);
|
|
|
67 |
if ( !$page ) return;
|
68 |
|
69 |
unset($wp->query_vars['attachment']);
|
@@ -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.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 enhancing quick edit. Includes an auto-generated menu to match the nested interface, support for all post types and more.
|
6 |
+
Version: 1.6.3.2
|
7 |
Author: Kyle Phillips
|
8 |
Author URI: https://github.com/kylephillips
|
9 |
Text Domain: nestedpages
|