[wp-trac] [WordPress Trac] #55467: WP_REST_Meta_Fields::update_meta_value handles update_metadata return value incorrectly
WordPress Trac
noreply at wordpress.org
Thu May 8 07:33:26 UTC 2025
#55467: WP_REST_Meta_Fields::update_meta_value handles update_metadata return value
incorrectly
--------------------------------+-----------------------
Reporter: wordpressscyt | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Options, Meta APIs | Version: 5.9
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: rest-api
--------------------------------+-----------------------
Comment (by vishalkakadiya):
Hi @shanemac10,
I tried to replicate your issue on my end, and it seems like the WP core
is working correctly to me. I have checked the codebase for the
`get_metadata()` and `get_metadata_raw()`, the `get_metadata()` itself is
calling `get_metadata_raw()`, so there will be no difference in the value
added by the user and stored in the DB if those are the same.
About the `wp_unslash()`, the WP core itself handles the values between
`wp_slash()` and `wp_unslash()`, so the output will always be in a format
that is needed.
@SergeyBiryukov @TimothyBlynJacobs Do you guys suggest any next steps on
this ticket?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55467#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list