Nested Pages - Version 3.1.15

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.

Download this release

Release Info

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

Code changes from version 3.1.14 to 3.1.15

app/Entities/Post/PostRepository.php CHANGED
@@ -176,7 +176,7 @@ class PostRepository
176
  * @param $post_type (string)
177
  * @param $include_parent (bool), whether to include parent in tree
178
  */
179
- public function postTree($parent_id = 0, $post_type, $include_parent = true)
180
  {
181
  $posts = [];
182
  if ( $parent_id !== 0 && $include_parent ){
176
  * @param $post_type (string)
177
  * @param $include_parent (bool), whether to include parent in tree
178
  */
179
+ public function postTree($parent_id = 0, $post_type = 'page', $include_parent = true)
180
  {
181
  $posts = [];
182
  if ( $parent_id !== 0 && $include_parent ){
app/Entities/Post/PostUpdateRepository.php CHANGED
@@ -481,6 +481,7 @@ class PostUpdateRepository
481
  $new_link['post_content'] = esc_url($data['url']);
482
  }
483
  $this->new_id = wp_insert_post($new_link);
 
484
  $parent_post_type = ( isset($data['parent_post_type']) ) ? sanitize_text_field($data['parent_post_type']) : 'page';
485
  add_post_meta($this->new_id, '_np_parent_post_type', $parent_post_type);
486
  $this->updateMenuMeta($data);
481
  $new_link['post_content'] = esc_url($data['url']);
482
  }
483
  $this->new_id = wp_insert_post($new_link);
484
+ $data['post_id'] = $this->new_id;
485
  $parent_post_type = ( isset($data['parent_post_type']) ) ? sanitize_text_field($data['parent_post_type']) : 'page';
486
  add_post_meta($this->new_id, '_np_parent_post_type', $parent_post_type);
487
  $this->updateMenuMeta($data);
app/NestedPages.php CHANGED
@@ -12,7 +12,7 @@ class NestedPages
12
  $np_env = 'live';
13
 
14
  global $np_version;
15
- $np_version = '3.1.14';
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 = '3.1.15';
16
 
17
  if ( is_admin() ) $app = new NestedPages\Bootstrap;
18
  if ( !is_admin() ) $app = new NestedPages\FrontEndBootstrap;
app/Views/listing.php CHANGED
@@ -31,6 +31,8 @@ endif;
31
  </a>
32
  <?php endif; ?>
33
 
 
 
34
  <div class="nestedpages-top-toggles">
35
  <?php if ( $this->post_type->hierarchical && !$this->listing_repo->isSearch() ) : ?>
36
  <a href="#" class="np-btn nestedpages-toggleall" data-toggle="closed"><?php esc_html_e('Expand All', 'wp-nested-pages'); ?></a>
31
  </a>
32
  <?php endif; ?>
33
 
34
+ <?php do_action('nestedpages_top_buttons', $this->post_type); ?>
35
+
36
  <div class="nestedpages-top-toggles">
37
  <?php if ( $this->post_type->hierarchical && !$this->listing_repo->isSearch() ) : ?>
38
  <a href="#" class="np-btn nestedpages-toggleall" data-toggle="closed"><?php esc_html_e('Expand All', 'wp-nested-pages'); ?></a>
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: 3.1.14
7
  Author: Kyle Phillips
8
  Author URI: https://github.com/kylephillips
9
  Text Domain: wp-nested-pages
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: 3.1.15
7
  Author: Kyle Phillips
8
  Author URI: https://github.com/kylephillips
9
  Text Domain: wp-nested-pages
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: pages, admin, nested, tree view, page tree, sort, quick edit, structure
5
  Requires at least: 3.8
6
  Tested up to: 5.7
7
  Requires PHP: 5.4
8
- Stable tag: 3.1.13
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -105,6 +105,11 @@ No. The menu synchronization currently only works within the pages post type.
105
 
106
  == Changelog ==
107
 
 
 
 
 
 
108
  = 3.1.14 =
109
  * Additional security enhancements (Thanks Nico Mollet)
110
  * Developer improvements through added filters and filter usage corrections (Thanks Bjørnar Tollaksen & Alexandre Sadowski)
5
  Requires at least: 3.8
6
  Tested up to: 5.7
7
  Requires PHP: 5.4
8
+ Stable tag: 3.1.14
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
105
 
106
  == Changelog ==
107
 
108
+ = 3.1.5 =
109
+ * Action added for outputting markup along with the add new/add multiple buttons (nestedpages_top_buttons)
110
+ * PHP 8 deprecation errors corrected
111
+ * Tested with WordPress v5.8
112
+
113
  = 3.1.14 =
114
  * Additional security enhancements (Thanks Nico Mollet)
115
  * Developer improvements through added filters and filter usage corrections (Thanks Bjørnar Tollaksen & Alexandre Sadowski)