[wp-trac] [WordPress Trac] #48747: WP_Customize_Setting doesn't clean up after itself

WordPress Trac noreply at wordpress.org
Fri Nov 22 23:41:20 UTC 2019


#48747: WP_Customize_Setting doesn't clean up after itself
--------------------------+------------------------------
 Reporter:  jon81         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Customize     |     Version:  3.4
 Severity:  minor         |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by jon81):

 Replying to [comment:6 dlh]:
 > How about, at least, describing this gotcha in the docs for the
 `remove_*()` methods? I'm thinking it could say exactly what's in the
 ticket description: that removing a construct from a manager doesn't
 destroy the class instance or "tear down" its filters. Would you be
 interested in writing a patch for that, @jon81?

 Absolutely, that sounds like a good idea to me!

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


More information about the wp-trac mailing list