[wp-trac] [WordPress Trac] #63430: Coding Standards: replace isset() ternary with null coalescing
WordPress Trac
noreply at wordpress.org
Tue Dec 23 05:55:23 UTC 2025
#63430: Coding Standards: replace isset() ternary with null coalescing
--------------------------------------+-------------------------------
Reporter: seanwei | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 7.0
Component: General | Version:
Severity: minor | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: coding-standards
--------------------------------------+-------------------------------
Comment (by westonruter):
[https://core.trac.wordpress.org/ticket/58874#comment:27 Proposed] follow-
up in #58874:
> Now that [61403] has been committed to fix #63430, which is a subset of
what this ticket is all about, I've followed up with
[https://github.com/WordPress/wordpress-develop/pull/10654 PR 10654]. I
did a regex replacement to update the remaining instances of `isset()`
ternaries to use the null coalescing operator as well. So it's basically
it's a refresh of [https://github.com/WordPress/wordpress-
develop/pull/4886 PR 4886]. If there aren't any objections, I'll commit.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63430#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list