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

Don't show row actions on unsupported post statuses

parent ae511d2e
No related branches found
No related tags found
1 merge request!2Utility methods for supported post types and statuses
...@@ -172,7 +172,7 @@ class ETH_Simple_Shortlinks { ...@@ -172,7 +172,7 @@ class ETH_Simple_Shortlinks {
* Provide the shortlink in row actions for easy access * Provide the shortlink in row actions for easy access
*/ */
public function filter_row_actions( $actions, $post ) { 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; return $actions;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment