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
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment