[wp-trac] [WordPress Trac] #10251: WP_Widget_Recent_Posts in default-widgets.php Doesn't Work With Persistent Caching

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 23 21:36:58 GMT 2009


#10251: WP_Widget_Recent_Posts in default-widgets.php Doesn't Work With Persistent
Caching
--------------------------+-------------------------------------------------
 Reporter:  brianwhite    |       Owner:  azaozz                                         
     Type:  defect (bug)  |      Status:  new                                            
 Priority:  normal        |   Milestone:  Unassigned                                     
Component:  Widgets       |     Version:  2.8                                            
 Severity:  normal        |    Keywords:  WP_Widget_Recent_Posts wp_cache default-widgets
--------------------------+-------------------------------------------------
 WP_Widget_Recent_Posts in default-widgets.php doesn't work with persistent
 caching enabled.  This is because the function RETURNS the list of recent
 posts retrieved from the cache rather than prints the list of recent posts
 to the screen.  The fix is trivial.  Replace "return" on line 530 with
 "echo".  (A simple patch is attached.)

 Reproducibility instructions.  Enabled persistent caching. (i.e.
 upload/enable a version of object-cache.php which supports your caching
 backend.)  Observe that no output is created for the
 WP_Widget_Recent_Posts widget.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10251>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list