More yoda conditions

This commit is contained in:
David Stone committed 2025-02-09 12:30:02 -07:00
1 parent d9122a410d
commit 0a4c81c105
97 files changed
+323 -289

No files matched your search

+1 -1
View File
@@ -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,