Merge pull request #21958 from mahdiyazdani/patch-2

Updated conditional statements to Yoda style
This commit is contained in:
Mike Jolley 2019-01-09 12:11:53 +00:00 committed by GitHub
commit a07cadf510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
do_action( 'woocommerce_before_customer_login_form' ); ?> do_action( 'woocommerce_before_customer_login_form' ); ?>
<?php if ( get_option( 'woocommerce_enable_myaccount_registration' ) === 'yes' ) : ?> <?php if ( 'yes' === get_option( 'woocommerce_enable_myaccount_registration' ) ) : ?>
<div class="u-columns col2-set" id="customer_login"> <div class="u-columns col2-set" id="customer_login">
@ -61,7 +61,7 @@ do_action( 'woocommerce_before_customer_login_form' ); ?>
</form> </form>
<?php if ( get_option( 'woocommerce_enable_myaccount_registration' ) === 'yes' ) : ?> <?php if ( 'yes' === get_option( 'woocommerce_enable_myaccount_registration' ) ) : ?>
</div> </div>