Nested Pages - Version 1.3.12

Version Description

  • Permissions Bug fix in emptying trash (Thanks to Yuksel Beyti)
Download this release

Release Info

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

Code changes from version 1.3.11 to 1.3.12

app/Entities/Post/PostRepository.php CHANGED
@@ -122,9 +122,10 @@ class PostRepository {
122
  {
123
  $posts_q = new \WP_Query(array('post_type'=>$post_type, 'post_status'=>'trash', 'posts_per_page'=>-1));
124
  if ( $posts_q->have_posts() ) : while ( $posts_q->have_posts() ) : $posts_q->the_post();
125
- wp_delete_post(get_the_id(), true);
 
126
  endwhile; endif; wp_reset_postdata();
127
  return true;
128
  }
129
 
130
- }
122
  {
123
  $posts_q = new \WP_Query(array('post_type'=>$post_type, 'post_status'=>'trash', 'posts_per_page'=>-1));
124
  if ( $posts_q->have_posts() ) : while ( $posts_q->have_posts() ) : $posts_q->the_post();
125
+ if( current_user_can( 'delete_' . $post_type, get_the_id() ) )
126
+ wp_delete_post(get_the_id(), true);
127
  endwhile; endif; wp_reset_postdata();
128
  return true;
129
  }
130
 
131
+ }
app/NestedPages.php CHANGED
@@ -12,7 +12,7 @@ class NestedPages {
12
  $np_env = 'live';
13
 
14
  global $np_version;
15
- $np_version = '1.3.11';
16
 
17
  if ( is_admin() ) $app = new NestedPages\Bootstrap;
18
  }
12
  $np_env = 'live';
13
 
14
  global $np_version;
15
+ $np_version = '1.3.12';
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.11
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.12
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.10
8
 
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -89,6 +89,9 @@ If you have WordPress SEO by Yoast installed, your page score indicators are sho
89
 
90
  == Changelog ==
91
 
 
 
 
92
  = 1.3.11 =
93
  * Minor UI bug fixes
94
  * Javascript Modal error bug fix
@@ -201,6 +204,9 @@ If you have WordPress SEO by Yoast installed, your page score indicators are sho
201
 
202
  == Upgrade Notice ==
203
 
 
 
 
204
  = 1.3.10 =
205
  Resolves deprecated function issue with SEO by Yoast update v1.7.3. Critical for sites running both Nested Pages and WordPress SEO by Yoast
206
 
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.11
8
 
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
89
 
90
  == Changelog ==
91
 
92
+ = 1.3.12 =
93
+ * Permissions Bug fix in emptying trash (Thanks to Yuksel Beyti)
94
+
95
  = 1.3.11 =
96
  * Minor UI bug fixes
97
  * Javascript Modal error bug fix
204
 
205
  == Upgrade Notice ==
206
 
207
+ = 1.3.12 =
208
+ 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.
209
+
210
  = 1.3.10 =
211
  Resolves deprecated function issue with SEO by Yoast update v1.7.3. Critical for sites running both Nested Pages and WordPress SEO by Yoast
212