[wp-trac] [WordPress Trac] #42264: Systematic way of dealing with compat code and polyfills
WordPress Trac
noreply at wordpress.org
Wed May 23 10:31:48 UTC 2018
#42264: Systematic way of dealing with compat code and polyfills
----------------------------+------------------------------
Reporter: schlessera | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Comment (by jrf):
> I see no reason why we couldn't combine both approaches, to have PHP-
version-based files and extension-based files.
@schlessera Agreed 👍.
> For extensions that have become required at one point, you always load
the polyfill except for when you've reached the minimum PHP version where
it became standard.
My point was more that this statement can not be relied on as PHP can be
(and I've seen it happen) compiled without the required extensions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42264#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list