Updated conditional statements to Yoda style

Updated both user registration conditional statements to [Yoda](https://en.wikipedia.org/wiki/Yoda_conditions) style.
This commit is contained in:
Mahdi Yazdani 2018-11-18 01:16:51 +04:00 committed by GitHub
parent 8f145c70d7
commit ac298674c7
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' ); ?>
<?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">
@ -61,7 +61,7 @@ do_action( 'woocommerce_before_customer_login_form' ); ?>
</form>
<?php if ( get_option( 'woocommerce_enable_myaccount_registration' ) === 'yes' ) : ?>
<?php if ( 'yes' === get_option( 'woocommerce_enable_myaccount_registration' ) ) : ?>
</div>