Commit 200c293
committed
Coding Standards: Simplify the
Includes:
* Converting a long ternary to an `if/elseif` block for better readability.
* Reusing an existing translatable string for user's first name and last name.
* Replacing `empty()` checks with more specific checks for an empty string.
* Replacing `is_object()` check with a check for a `WP_Comment` instance.
Follow-up to [53501], [60269].
See #63087.
git-svn-id: https://develop.svn.wordpress.org/trunk@60897 602fd350-edb4-49c9-b593-d223f7449a82initials avatar type handling in get_avatar_data().1 parent abc5dd8 commit 200c293
1 file changed
+16
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4553 | 4553 | | |
4554 | 4554 | | |
4555 | 4555 | | |
4556 | | - | |
| 4556 | + | |
4557 | 4557 | | |
4558 | 4558 | | |
4559 | 4559 | | |
4560 | 4560 | | |
4561 | | - | |
4562 | | - | |
4563 | | - | |
4564 | | - | |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
| 4567 | + | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
| 4572 | + | |
| 4573 | + | |
4565 | 4574 | | |
4566 | 4575 | | |
4567 | 4576 | | |
4568 | 4577 | | |
4569 | 4578 | | |
4570 | | - | |
4571 | | - | |
| 4579 | + | |
| 4580 | + | |
4572 | 4581 | | |
4573 | 4582 | | |
4574 | 4583 | | |
| |||
0 commit comments