More yoda conditions
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
?>
|
||||
<?php
|
||||
|
||||
if (isset($_GET['coupon']) && wu_get_coupon($_GET['coupon']) !== false && isset($_GET['step']) && $_GET['step'] == 'plan') :
|
||||
if (isset($_GET['coupon']) && wu_get_coupon($_GET['coupon']) !== false && isset($_GET['step']) && 'plan' == $_GET['step']) :
|
||||
$coupon = wu_get_coupon($_GET['coupon']);
|
||||
|
||||
?>
|
||||
|
@ -115,7 +115,7 @@ $plan_attrs = apply_filters('wu_pricing_table_plan', $plan_attrs, $plan);
|
||||
|
||||
<?php
|
||||
$button_attrubutes = apply_filters('wu_plan_select_button_attributes', '', $plan, $current_plan);
|
||||
$button_label = null != $current_plan && $current_plan->id == $plan->get_id() ? __('This is your current plan', 'wp-ultimo') : __('Select Plan', 'wp-ultimo');
|
||||
$button_label = null != $current_plan && $plan->get_id() == $current_plan->id ? __('This is your current plan', 'wp-ultimo') : __('Select Plan', 'wp-ultimo');
|
||||
$button_label = apply_filters('wu_plan_select_button_label', $button_label, $plan, $current_plan);
|
||||
?>
|
||||
|
||||
|
@ -42,7 +42,7 @@ if ( ! isset($signup->step)) {
|
||||
|
||||
?>
|
||||
|
||||
<?php if ($signup->step != 'plan' && $signup->step != 'template') : ?>
|
||||
<?php if ('plan' != $signup->step && 'template' != $signup->step) : ?>
|
||||
|
||||
<p id="nav">
|
||||
|
||||
|
Reference in New Issue
Block a user