Everywhere yoda conditions are

This commit is contained in:
David Stone
2025-02-09 00:20:10 -07:00
parent d74f6d1a53
commit be0ab98895
213 changed files with 691 additions and 412 deletions
inc
admin-pages
api
checkout
class-ajax.phpclass-api.phpclass-async-calls.phpclass-dashboard-widgets.phpclass-domain-mapping.phpclass-geolocation.phpclass-logger.phpclass-requirements.phpclass-session-cookie.phpclass-settings.phpclass-sunrise.phpclass-user-switching.php
compat
country
database
debug
deprecated
development
domain-mapping
duplication
functions
gateways
helpers
installers
integrations
limitations
limits
list-tables
managers
models
objects
site-templates
sso
tax
traits
ui
views
admin-pages
checkout
templates
order-bump
order-summary
period-selection
pricing-table
dashboard-statistics
dashboard-widgets
legacy
settings

@ -470,7 +470,7 @@ class SSO {
status_header($response_code);
exit;
} elseif ($response_type === 'redirect') {
} elseif ('redirect' === $response_type) {
$args = [
'sso_verify' => $verification_code ?: 'invalid',
];
@ -548,7 +548,7 @@ class SSO {
exit();
}
if ($response_type === 'jsonp') {
if ('jsonp' === $response_type) {
echo '// Nothing to see here.';
exit;
@ -658,6 +658,7 @@ class SSO {
* @throws NotAttachedException
*/
}
return $current_user_id;
}
@ -859,6 +860,7 @@ class SSO {
if ( ! $action) {
$action = $this->input($sso_path, 'done') !== 'done' ? $sso_path : '';
}
if ( ! $action) {
$action = $this->input("$sso_path-grant", 'done') !== 'done' ? "$sso_path-grant" : '';
}
@ -1046,6 +1048,7 @@ class SSO {
public function get_target_user_id() {
return $this->target_user_id;
}
/**
* Get the url path for SSO.
*