[wp-trac] [WordPress Trac] #35927: _wp_attachment_metadata meta_value wrong type in export

WordPress Trac noreply at wordpress.org
Thu Oct 24 06:06:09 UTC 2019


#35927: _wp_attachment_metadata meta_value wrong type in export
--------------------------+---------------------
 Reporter:  davidak       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:
Component:  Export        |     Version:  4.4.2
 Severity:  normal        |  Resolution:
 Keywords:  2nd-opinion   |     Focuses:
--------------------------+---------------------
Changes (by noisysocks):

 * keywords:   => 2nd-opinion
 * component:  General => Export


Comment:

 Verified that new posts, when exported, have `width` and `height` as an
 integer. It's possible an older version of WordPress saved strings to the
 database.

 We could patch the exporter to coerce these strings to integers, or we
 could add a migration script which coerces the strings to integers. I'm
 not sure if either of these approaches is feasible, so adding `2nd-
 opinion` here.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/35927#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list