Merge pull request #10285 from shivapoudel/row-actions

Both row actions can be check in single condition ;)
This commit is contained in:
Mike Jolley 2016-02-08 09:55:14 +00:00
commit f9edc6a14a
1 changed files with 9 additions and 15 deletions

View File

@ -903,13 +903,7 @@ class WC_Admin_Post_Types {
return array_merge( array( 'id' => 'ID: ' . $post->ID ), $actions );
}
if ( 'shop_order' === $post->post_type ) {
if ( isset( $actions['inline hide-if-no-js'] ) ) {
unset( $actions['inline hide-if-no-js'] );
}
}
if ( 'shop_coupon' === $post->post_type ) {
if ( in_array( $post->post_type, array( 'shop_order', 'shop_coupon' ) ) ) {
if ( isset( $actions['inline hide-if-no-js'] ) ) {
unset( $actions['inline hide-if-no-js'] );
}