Commit 712a6af
committed
Coding Standards: Simplify plugin name fallback in entity
Simplifies the plugin name resolution in by replacing the nested `isset()` checks with a null coalescing chain.
No functional change — the fallback order is preserved: plugin's registered `Name`, then the template's `plugin` attribute, then the `theme` attribute.
Follow-up to [62547].
Props Soean.
See #64897.
git-svn-id: https://develop.svn.wordpress.org/trunk@62631 602fd350-edb4-49c9-b593-d223f7449a82view-config.php.1 parent 4d6a707 commit 712a6af
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
| 663 | + | |
668 | 664 | | |
669 | 665 | | |
670 | 666 | | |
| |||
0 commit comments