Merge pull request #16485 from Korkey128k/master

Wrapped 'Delete selected row(s)' button in condition
This commit is contained in:
Mike Jolley 2017-08-18 15:38:14 +01:00 committed by GitHub
commit 1f692ffb64
1 changed files with 4 additions and 1 deletions

View File

@ -101,7 +101,10 @@ if ( wc_tax_enabled() ) {
</table>
</div>
<div class="wc-order-data-row wc-order-item-bulk-edit" style="display:none;">
<button type="button" class="button bulk-delete-items"><?php _e( 'Delete selected row(s)', 'woocommerce' ); ?></button>
<?php if ( $order->is_editable() ) : ?>
<button type="button" class="button bulk-delete-items"><?php _e( 'Delete selected row(s)', 'woocommerce' ); ?></button>
<?php endif; ?>
<button type="button" class="button bulk-decrease-stock"><?php _e( 'Reduce stock', 'woocommerce' ); ?></button>
<button type="button" class="button bulk-increase-stock"><?php _e( 'Increase stock', 'woocommerce' ); ?></button>
<?php do_action( 'woocommerce_admin_order_item_bulk_actions', $order ); ?>