diff --git a/includes/class-delete-all.php b/includes/class-delete-all.php index de43a00b3784356ddbd94e919f366b8913b9e7f8..4bf72316ad2edbb12e83f2f24994a56d952a581b 100644 --- a/includes/class-delete-all.php +++ b/includes/class-delete-all.php @@ -26,7 +26,7 @@ class Delete_All { add_action( Main::build_cron_hook( self::ACTION ), array( __CLASS__, 'process_via_cron' ) ); add_action( 'admin_notices', array( __CLASS__, 'admin_notices' ) ); - add_filter( 'posts_where', array( __CLASS__, 'hide_posts_pending_delete' ), 999, 2 ); + add_filter( 'posts_where', array( __CLASS__, 'hide_posts' ), 999, 2 ); // Limit when caps are intercepted, given frequent execution of the `map_meta_cap` filter. add_action( 'load-edit.php', function() { @@ -142,7 +142,7 @@ class Delete_All { * @param object $q WP_Query object. * @return string */ - public static function hide_posts_pending_delete( $where, $q ) { + public static function hide_posts( $where, $q ) { if ( ! is_admin() || ! $q->is_main_query() ) { return $where; } diff --git a/includes/class-delete-permanently.php b/includes/class-delete-permanently.php index e1094b3d8d2782225bbb7f1659f7d85a4da358dc..f80185584bc37eb2e13d3a8c26b459463a95762d 100644 --- a/includes/class-delete-permanently.php +++ b/includes/class-delete-permanently.php @@ -26,7 +26,7 @@ class Delete_Permanently { add_action( Main::build_cron_hook( self::ACTION ), array( __CLASS__, 'process_via_cron' ) ); add_action( 'admin_notices', array( __CLASS__, 'admin_notices' ) ); - add_filter( 'posts_where', array( __CLASS__, 'hide_posts_pending_delete' ), 999, 2 ); + add_filter( 'posts_where', array( __CLASS__, 'hide_posts' ), 999, 2 ); } /** @@ -130,7 +130,7 @@ class Delete_Permanently { * @param object $q WP_Query object. * @return string */ - public static function hide_posts_pending_delete( $where, $q ) { + public static function hide_posts( $where, $q ) { if ( ! is_admin() || ! $q->is_main_query() ) { return $where; } diff --git a/includes/class-edit.php b/includes/class-edit.php index c802041cfe62b94cd5e93a95a787a059fd496e4a..522eace4ffd677886d42f6e3d11913eaea7e5b81 100644 --- a/includes/class-edit.php +++ b/includes/class-edit.php @@ -26,7 +26,7 @@ class Edit { add_action( Main::build_cron_hook( self::ACTION ), array( __CLASS__, 'process_via_cron' ) ); add_action( 'admin_notices', array( __CLASS__, 'admin_notices' ) ); - add_filter( 'posts_where', array( __CLASS__, 'hide_posts_pending_move' ), 999, 2 ); + add_filter( 'posts_where', array( __CLASS__, 'hide_posts' ), 999, 2 ); } /** @@ -138,7 +138,7 @@ class Edit { * @param object $q WP_Query object. * @return string */ - public static function hide_posts_pending_move( $where, $q ) { + public static function hide_posts( $where, $q ) { if ( ! is_admin() || ! $q->is_main_query() ) { return $where; } diff --git a/includes/class-move-to-trash.php b/includes/class-move-to-trash.php index 031913982495969c697d1e37f66b2294a7cbf4a8..2a9f78634b54425dc3e1393d82df75510680151b 100644 --- a/includes/class-move-to-trash.php +++ b/includes/class-move-to-trash.php @@ -26,7 +26,7 @@ class Move_To_Trash { add_action( Main::build_cron_hook( self::ACTION ), array( __CLASS__, 'process_via_cron' ) ); add_action( 'admin_notices', array( __CLASS__, 'admin_notices' ) ); - add_filter( 'posts_where', array( __CLASS__, 'hide_posts_pending_move' ), 999, 2 ); + add_filter( 'posts_where', array( __CLASS__, 'hide_posts' ), 999, 2 ); } /** @@ -137,7 +137,7 @@ class Move_To_Trash { * @param object $q WP_Query object. * @return string */ - public static function hide_posts_pending_move( $where, $q ) { + public static function hide_posts( $where, $q ) { if ( ! is_admin() || ! $q->is_main_query() ) { return $where; } diff --git a/includes/class-restore-from-trash.php b/includes/class-restore-from-trash.php index ace7ed61d571fc3b53ca2bf886d5f4101a8184a7..59ccbe4cd678d2fe3ea7c2fbcb3dabf08c51b7a1 100644 --- a/includes/class-restore-from-trash.php +++ b/includes/class-restore-from-trash.php @@ -26,7 +26,7 @@ class Restore_From_Trash { add_action( Main::build_cron_hook( self::ACTION ), array( __CLASS__, 'process_via_cron' ) ); add_action( 'admin_notices', array( __CLASS__, 'admin_notices' ) ); - add_filter( 'posts_where', array( __CLASS__, 'hide_posts_pending_restore' ), 999, 2 ); + add_filter( 'posts_where', array( __CLASS__, 'hide_posts' ), 999, 2 ); } /** @@ -130,7 +130,7 @@ class Restore_From_Trash { * @param object $q WP_Query object. * @return string */ - public static function hide_posts_pending_restore( $where, $q ) { + public static function hide_posts( $where, $q ) { if ( ! is_admin() || ! $q->is_main_query() ) { return $where; }