From 35ddcd250c037f0a9f81eaf6d4e54b587368002b Mon Sep 17 00:00:00 2001
From: Erick Hitter <services@ethitter.com>
Date: Sun, 20 Mar 2016 21:01:20 -0700
Subject: [PATCH] Don't show row actions on unsupported post statuses

---
 eth-simple-shortlinks.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eth-simple-shortlinks.php b/eth-simple-shortlinks.php
index 24c3244..128b32e 100644
--- a/eth-simple-shortlinks.php
+++ b/eth-simple-shortlinks.php
@@ -172,7 +172,7 @@ class ETH_Simple_Shortlinks {
 	 * Provide the shortlink in row actions for easy access
 	 */
 	public function filter_row_actions( $actions, $post ) {
-		if ( ! in_array( get_post_type( $post ), $this->supported_post_types ) ) {
+		if ( ! in_array( get_post_type( $post ), $this->supported_post_types ) || ! in_array( get_post_status( $post ), $this->supported_post_statuses ) ) {
 			return $actions;
 		}
 
-- 
GitLab