[wp-trac] [WordPress Trac] #52738: Use of get_object_vars() in sanitize_post() and WP_Post constructor does not handle null byte
WordPress Trac
noreply at wordpress.org
Sat Jul 1 13:55:53 UTC 2023
#52738: Use of get_object_vars() in sanitize_post() and WP_Post constructor does
not handle null byte
----------------------------------------------------+---------------------
Reporter: bitcomplex | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3
Component: Posts, Post Types | Version: 5.6.2
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs-testing | Focuses:
----------------------------------------------------+---------------------
Comment (by oglekler):
@bitcomplex, where do these objects with broken properties are coming
from? If WordPress, or plugin or theme is changing data structure, there
is a migration in place which checks the current version stored in the DB
and compares it with the one it needs and if it is not the same runs a
migration. So, data is transformed once, new tables created etc. whatever
it needs and then a new version is stored in the options to indicate
current state and there are no more problems.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52738#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list