More yoda conditions
This commit is contained in:
1 parent
d9122a410d
commit
0a4c81c105
97 files changed
+323
-289
No files matched your search
@@ -99,7 +99,7 @@ class Memory_Trap {
|
||||
|
||||
$message = sprintf(__('Your server\'s PHP and WordPress memory limits are too low to perform this check. You might need to contact your host provider and ask the PHP memory limit in particular to be raised.', 'wp-ultimo'));
|
||||
|
||||
if ($this->return_type === 'json') {
|
||||
if ('json' === $this->return_type) {
|
||||
wp_send_json_error(
|
||||
[
|
||||
'message' => $message,
|
||||
|
||||
Reference in new issue
Block a user