[wp-trac] [WordPress Trac] #27538: Widget Customizer: Persistent object cache/Transients causes certain previewed widgets to leak outside of customizer

WordPress Trac noreply at wordpress.org
Wed Apr 2 04:49:12 UTC 2014


#27538: Widget Customizer: Persistent object cache/Transients causes certain
previewed widgets to leak outside of customizer
--------------------------+--------------------
 Reporter:  westonruter   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  3.9
Component:  Widgets       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------

Comment (by David_Rothstein):

 I was also thinking that it may be a good idea to combine this approach
 with the addition of the wp_suspend_cache_addition() call.  This is for
 two reasons:

 1. It looks like a good use of wp_suspend_cache_addition() anyway, due to
 the documented purpose of that function.  (Adding a bunch of temporary
 previews to the cache is kind of a waste.)
 2. If there are plugins out there that cache their output in the same way
 the WordPress core plugins did, they would still experience this bug until
 they fixed their code.  Using wp_suspend_cache_addition() is a good backup
 for that.

 However, for 2, I looked at the code in
 http://wordpress.org/plugins/memcached and it doesn't currently check
 wp_suspend_cache_addition() at all before putting things in the cache...
 so without updating that plugin that approach doesn't look like it will
 actually do anything to fix the original bug?

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


More information about the wp-trac mailing list