[wp-trac] [WordPress Trac] #61937: WP_Theme_JSON_Schema::migrate removes data when version is missing

WordPress Trac noreply at wordpress.org
Tue Aug 27 15:14:50 UTC 2024


#61937: WP_Theme_JSON_Schema::migrate removes data when version is missing
--------------------------+------------------------------
 Reporter:  Soean         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by Soean):

 If we want a `version`, because otherwise we can't migrate old values,
 maybe we should call a `_doing_it_wrong()` if the value is missing.

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


More information about the wp-trac mailing list