Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eliminate usage of
empty()
construct #1803Eliminate usage of
empty()
construct #1803Changes from all commits
f6a89b1
7e480ca
50a6d78
70e55e4
9a85740
48c1669
2766d04
854f641
87f4abf
375a1ed
2a631f1
e12a0f7
32f794c
717483d
69bd65c
2117f92
dc42328
2a93cf4
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 72 in plugins/dominant-color-images/hooks.php
plugins/dominant-color-images/hooks.php#L72
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If someone passed an
option_name
of'0'
then this will pass through the condition sinceempty( '0' ) === true
: https://3v4l.org/LurUeI don't think this is a problem here though 😄
Check warning on line 37 in plugins/webp-uploads/deprecated.php
plugins/webp-uploads/deprecated.php#L34-L37
Check warning on line 43 in plugins/webp-uploads/deprecated.php
plugins/webp-uploads/deprecated.php#L43
Check warning on line 153 in plugins/webp-uploads/hooks.php
plugins/webp-uploads/hooks.php#L153
Check warning on line 476 in plugins/webp-uploads/hooks.php
plugins/webp-uploads/hooks.php#L476
Check warning on line 493 in plugins/webp-uploads/hooks.php
plugins/webp-uploads/hooks.php#L491-L493
Check warning on line 499 in plugins/webp-uploads/hooks.php
plugins/webp-uploads/hooks.php#L499
Check warning on line 522 in plugins/webp-uploads/hooks.php
plugins/webp-uploads/hooks.php#L520-L522
Check warning on line 528 in plugins/webp-uploads/hooks.php
plugins/webp-uploads/hooks.php#L528