More yoda conditions

This commit is contained in:
David Stone
2025-02-09 12:30:02 -07:00
parent d9122a410d
commit 0a4c81c105
97 changed files with 323 additions and 289 deletions
.phpcs.xml.dist
inc
admin-pages
builders
checkout
class-ajax.phpclass-async-calls.phpclass-autoloader.phpclass-domain-mapping.phpclass-session-cookie.phpclass-settings.phpclass-whitelabel.php
compat
database
domain-mapping
duplication
functions
gateways
helpers
installers
integrations
internal
limitations
limits
list-tables
managers
models
traits
ui
utils/rector
src
tests
Rector
YodaConditionsRector
views

@@ -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);
?>