[wp-trac] [WordPress Trac] #47699: Remove redundant JSON polyfills for PHP native functionality

WordPress Trac noreply at wordpress.org
Wed Oct 9 22:20:48 UTC 2019


#47699: Remove redundant JSON polyfills for PHP native functionality
-------------------------------------------------+-------------------------
 Reporter:  jrf                                  |       Owner:  desrosj
     Type:  task (blessed)                       |      Status:  closed
 Priority:  normal                               |   Milestone:  5.3
Component:  General                              |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:  coding-
  note i18n-change commit                        |  standards
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"46455" 46455]:
 {{{
 #!CommitTicketReference repository="" revision="46455"
 Upgrade/Install: Detect the presence of the native PHP JSON extension
 before updating.

 The PHP native JSON extension has been bundled and compiled with PHP by
 default since version 5.2.0. Because the minimum version of PHP required
 by WordPress is now 5.6.20 (see #46594 and [45058]), the related polyfills
 and workarounds have been removed (see [46205-46206,46208]).

 However, even though the JSON extension is now included in PHP by default,
 it is still possible to disable the extension in a custom configuration.
 This change will prevent sites from upgrading if the JSON extension is
 disabled to prevent compatibility issues.

 Props jrf, jorbin, dd32, desrosj.
 Fixes #47699.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47699#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list