[wp-trac] [WordPress Trac] #52947: Docs: json_decode PHP function is inadvertently pulled up in DevHub documentation

WordPress Trac noreply at wordpress.org
Wed Mar 31 09:08:11 UTC 2021


#52947: Docs: json_decode PHP function is inadvertently pulled up in DevHub
documentation
--------------------------+--------------------------------
 Reporter:  audrasjb      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:
 Severity:  normal        |  Resolution:  reported-upstream
 Keywords:  needs-patch   |     Focuses:  docs
--------------------------+--------------------------------
Changes (by coffee2code):

 * status:  new => closed
 * resolution:   => reported-upstream
 * milestone:  Awaiting Review =>


Comment:

 Core included a polyfill for `json_decode()` (and a few other functions)
 until [46208]. See #47699 for the ticket related to its removal.

 The PHPDOC parser plugin used by DevHub does not currently handle the
 complete removal of a function from the source being parsed, so such
 functions (as the one referenced here) get orphaned.

 I've removed the following polyfills that had been removed in [46208]:

 * `json_encode()`
 * `json_decode()`
 * `_json_decode_object_helper()`
 * `json_last_error_msg()`

 Closing as reported-upstream since this is really a problem for meta.trac
 (though I've taken care of it here).

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


More information about the wp-trac mailing list