Shipping debug for all users

This commit is contained in:
Mike Jolley 2015-07-08 11:02:07 +01:00
parent 2ec12a7985
commit d19a7d2c2e
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ class WC_Shipping {
$package_hash = 'wc_ship_' . md5( json_encode( $package ) . WC_Cache_Helper::get_transient_version( 'shipping' ) ); $package_hash = 'wc_ship_' . md5( json_encode( $package ) . WC_Cache_Helper::get_transient_version( 'shipping' ) );
$status_options = get_option( 'woocommerce_status_options', array() ); $status_options = get_option( 'woocommerce_status_options', array() );
if ( false === ( $stored_rates = get_transient( $package_hash ) ) || ( ! empty( $status_options['shipping_debug_mode'] ) && current_user_can( 'manage_options' ) ) ) { if ( false === ( $stored_rates = get_transient( $package_hash ) ) || ! empty( $status_options['shipping_debug_mode'] ) ) {
// Calculate shipping method rates // Calculate shipping method rates
$package['rates'] = array(); $package['rates'] = array();