Merge pull request #16016 from woocommerce/fix/15082

Avoid CloudFlare email obfuscation.
This commit is contained in:
Claudio Sanches 2017-07-07 18:27:26 -03:00 committed by GitHub
commit 9460391078
1 changed files with 2 additions and 0 deletions

View File

@ -234,6 +234,7 @@ class WC_Meta_Box_Order_Data {
</select></p>
<p class="form-field form-field-wide wc-customer-user">
<!--email_off--> <!-- Disable CloudFlare email obfuscation -->
<label for="customer_user"><?php _e( 'Customer:', 'woocommerce' ) ?> <?php
if ( $order->get_user_id( 'edit' ) ) {
$args = array(
@ -265,6 +266,7 @@ class WC_Meta_Box_Order_Data {
<select class="wc-customer-search" id="customer_user" name="customer_user" data-placeholder="<?php esc_attr_e( 'Guest', 'woocommerce' ); ?>" data-allow_clear="true">
<option value="<?php echo esc_attr( $user_id ); ?>" selected="selected"><?php echo htmlspecialchars( $user_string ); ?></option>
</select>
<!--/email_off-->
</p>
<?php do_action( 'woocommerce_admin_order_data_after_order_details', $order ); ?>
</div>