[wp-trac] [WordPress Trac] #46314: JSON strings in postmeta issue
WordPress Trac
noreply at wordpress.org
Fri Feb 22 13:44:07 UTC 2019
#46314: JSON strings in postmeta issue
--------------------------------+------------------------------
Reporter: Jonua | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------------+------------------------------
Comment (by Jonua):
Thanks,
great, the documentation is well done and clear. But unfortunately in
practice I´m experiencing, that no plugin developer provides wp_slash()
before update_post_meta(). Not even well know plugins. Also the ACF Plugin
itself didn´t do this until I pointed this issue out to the developer and
he agreed to my arguments and fixed it as well other plugin developers to.
But I can not contact all plugin developers whose plugin does not use
update_post_meta() correctly and breaking the meta values of other
plugins.
In practice, with update_post_meta() as it behave now, pure JSON strings
can´t stored in meta. Plugin developers will not recognize that issue with
update_post_meta(). As I mentioned, the point is that it is not expected
that a function that should simply store a value in the database will
change that value.
thanks a lot,
Johann
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46314#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list