[wp-trac] [WordPress Trac] #58874: Code Modernization: Consider using the null coalescing operator.
WordPress Trac
noreply at wordpress.org
Tue Dec 23 05:48:42 UTC 2025
#58874: Code Modernization: Consider using the null coalescing operator.
-------------------------------------------------+-------------------------
Reporter: costdev | Owner: costdev
Type: enhancement | Status: accepted
Priority: normal | Milestone: Future
| Release
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch awaiting-php7-make-post- | Focuses:
first 2nd-opinion has-unit-tests |
-------------------------------------------------+-------------------------
Comment (by westonruter):
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/58874#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list