Merge pull request #14830 from javorszky/issue-14829

use yoda condition all incarnations of filter woocommerce_enable_order_notes_field do
This commit is contained in:
Claudio Sanches 2017-05-02 12:41:05 -03:00 committed by GitHub
commit 61184d534a
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<div class="woocommerce-additional-fields">
<?php do_action( 'woocommerce_before_order_notes', $checkout ); ?>
<?php if ( apply_filters( 'woocommerce_enable_order_notes_field', get_option( 'woocommerce_enable_order_comments', 'yes' ) === 'yes' ) ) : ?>
<?php if ( apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) ) ) : ?>
<?php if ( ! WC()->cart->needs_shipping() || wc_ship_to_billing_address_only() ) : ?>