Commit 9032503
committed
Coding Standards: Replace redundant check in
The `is_object()` check would always be true in the second part of the conditional. This commit adds an `instanceof WP_User` check instead before accessing the `user_login` property.
Follow-up to [41963], [https://mu.trac.wordpress.org/changeset/550 mu:550], [https://mu.trac.wordpress.org/changeset/1958 mu:1958], [12603].
Props justlevine.
See #63268.
git-svn-id: https://develop.svn.wordpress.org/trunk@60450 602fd350-edb4-49c9-b593-d223f7449a82wpmu_validate_blog_signup().1 parent 0fd771a commit 9032503
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | | - | |
| 733 | + | |
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| |||
0 commit comments