Skip to content
Snippets Groups Projects
Commit 3167bdbc authored by Erick Hitter's avatar Erick Hitter
Browse files

Hide posts pending delete where they should be hidden

parent e2ead506
Branches add/scaffolding
No related tags found
No related merge requests found
...@@ -102,7 +102,7 @@ class Delete_Permanently { ...@@ -102,7 +102,7 @@ class Delete_Permanently {
public static function admin_notices() { public static function admin_notices() {
$screen = get_current_screen(); $screen = get_current_screen();
$type = ''; $type = '';
$message = ''; $message = '';
if ( isset( $_REQUEST[ self::ADMIN_NOTICE_KEY ] ) ) { if ( isset( $_REQUEST[ self::ADMIN_NOTICE_KEY ] ) ) {
...@@ -139,7 +139,7 @@ class Delete_Permanently { ...@@ -139,7 +139,7 @@ class Delete_Permanently {
return $where; return $where;
} }
if ( 'trash' === $q->get( 'post_status' ) ) { if ( 'trash' !== $q->get( 'post_status' ) ) {
return $where; return $where;
} }
......
...@@ -154,7 +154,7 @@ class Main { ...@@ -154,7 +154,7 @@ class Main {
'delete', // class Delete_Permanently. 'delete', // class Delete_Permanently.
'delete_all', // class Delete_All. 'delete_all', // class Delete_All.
'edit', 'edit',
'trash', // class Move_To_trash. 'trash', // class Move_To_Trash.
'untrash', // class Restore_From_Trash. 'untrash', // class Restore_From_Trash.
); );
......
...@@ -102,7 +102,7 @@ class Move_To_Trash { ...@@ -102,7 +102,7 @@ class Move_To_Trash {
public static function admin_notices() { public static function admin_notices() {
$screen = get_current_screen(); $screen = get_current_screen();
$type = ''; $type = '';
$message = ''; $message = '';
if ( isset( $_REQUEST[ self::ADMIN_NOTICE_KEY ] ) ) { if ( isset( $_REQUEST[ self::ADMIN_NOTICE_KEY ] ) ) {
......
...@@ -102,7 +102,7 @@ class Restore_From_Trash { ...@@ -102,7 +102,7 @@ class Restore_From_Trash {
public static function admin_notices() { public static function admin_notices() {
$screen = get_current_screen(); $screen = get_current_screen();
$type = ''; $type = '';
$message = ''; $message = '';
if ( isset( $_REQUEST[ self::ADMIN_NOTICE_KEY ] ) ) { if ( isset( $_REQUEST[ self::ADMIN_NOTICE_KEY ] ) ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment