[wp-trac] [WordPress Trac] #50913: PHP 8.0: various compatibility fixes
WordPress Trac
noreply at wordpress.org
Wed Sep 9 04:46:50 UTC 2020
#50913: PHP 8.0: various compatibility fixes
----------------------------+-------------------------------
Reporter: jrf | Owner: SergeyBiryukov
Type: task (blessed) | Status: reviewing
Priority: normal | Milestone: 5.6
Component: General | Version:
Severity: normal | Resolution:
Keywords: php8 has-patch | Focuses: coding-standards
----------------------------+-------------------------------
Comment (by SergeyBiryukov):
Replying to [comment:13 jrf]:
> [48961] should be considered a BC-break and will need a dev-note.
Thanks, adding the tag. Just noted a few other instances of `array_map(
'get_comment', ... )` in core and the tests, and thought this could be a
more common pattern than relying on the reference for filling an empty
variable, so bringing some consistency with `get_posts()` would make
sense.
A [https://wpdirectory.net/search/01EHRJHKGVG96FWZT71P9GNEF4 brief search]
shows that some popular plugins do indeed use `array_map( 'get_comment',
... )`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50913#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list