Merge pull request #10285 from shivapoudel/row-actions
Both row actions can be check in single condition ;)
This commit is contained in:
commit
f9edc6a14a
|
@ -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'] );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue