Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58309, comment 2


Ignore:
Timestamp:
05/14/2023 05:45:33 PM (11 months ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58309, comment 2

    initial v1  
    55
    66Strangely, I couldn't find this line in that file or in any file in Core. Can you double-check this one?
     7
     8That said, it doesn't seem safe to change. It should only pass if `$value` is an `object` but not an instance of `JsonSerializable`. Removing `is_object( $value )` would allow strings, ints, floats, arrays, etc. to pass. Though I haven't seen the source code in full yet.
    79 
    810> wp-includes/class-json.php, ~L.929