From 5682cb33337a55b6ed48c5871267512957e531d0 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Thu, 14 Sep 2017 17:38:23 -0700
Subject: [PATCH] Standardize in preparation for an abstract class

---
 includes/class-delete-all.php         | 4 ++--
 includes/class-delete-permanently.php | 4 ++--
 includes/class-edit.php               | 4 ++--
 includes/class-move-to-trash.php      | 4 ++--
 includes/class-restore-from-trash.php | 4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/includes/class-delete-all.php b/includes/class-delete-all.php
index de43a00..4bf7231 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 e1094b3..f801855 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 c802041..522eace 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 0319139..2a9f786 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 ace7ed6..59ccbe4 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;
 		}
-- 
GitLab