Commit 3167bdbc authored by Erick Hitter's avatar Erick Hitter
Browse files

Hide posts pending delete where they should be hidden

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