Commit 00b3b63
committed
Coding Standards: Simplify a conditional in
As there's an `is_string()` check already, `! empty( $href )` can be simplified to a string comparison, as the other variable types that are checked in `empty()` won't appear.
`empty()` also returns `false` for the string `"0"` which would however be a valid (relative) URL and thus should be detectable by the function.
Follow-up to [60665].
Props TobiasBg.
Fixes #63694.
git-svn-id: https://develop.svn.wordpress.org/trunk@60726 602fd350-edb4-49c9-b593-d223f7449a82get_url_in_content().1 parent f57cf3d commit 00b3b63
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5989 | 5989 | | |
5990 | 5990 | | |
5991 | 5991 | | |
5992 | | - | |
| 5992 | + | |
5993 | 5993 | | |
5994 | 5994 | | |
5995 | 5995 | | |
| |||
0 commit comments