[wp-trac] [WordPress Trac] #59630: wp_json_encode(): rename parameters for parity with PHP Core
WordPress Trac
noreply at wordpress.org
Mon Oct 16 18:18:04 UTC 2023
#59630: wp_json_encode(): rename parameters for parity with PHP Core
--------------------------+-------------------------------
Reporter: jrf | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.5
Component: General | Version: 4.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses: coding-standards
--------------------------+-------------------------------
Comment (by jrf):
Replying to [comment:2 hellofromTonya]:
> Changing the Version to 4.1.0 which introduced `wp_json_encode()` with
these parameter names.
Thanks @hellofromTonya !
On that note: it may well be that the parameter names at the time of
introduction were in line with PHP Core.
PHP Core has renamed a lot of parameters to better names in the run up to
the release of PHP 8.0 in anticipation of supporting named parameters.
It is not inconceivable that these parameters were renamed in PHP Core as
part of that exercise.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59630#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list