[wp-trac] [WordPress Trac] #54443: Database Error Breaks "custom_css_post_id" Theme Mod

WordPress Trac noreply at wordpress.org
Fri Nov 26 23:02:46 UTC 2021


#54443: Database Error Breaks "custom_css_post_id" Theme Mod
---------------------------+-----------------------------
 Reporter:  domainsupport  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  Customize      |     Version:  4.7
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:
---------------------------+-----------------------------

Comment (by dlh):

 Replying to [comment:4 domainsupport]:
 > Surely a positive integer would infer that a custom_css custom post type
 post should exist ... or is there somewhere where this post might be
 deleted without the custom_css_post_id theme mod being updated to "-1"?

 Oh, great point! At a glance, I don't see any logic in core that would
 allow for deleting the post without updating the theme mod, so that might
 be a sound assumption to make in `wp_get_custom_css_post()`.

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


More information about the wp-trac mailing list