WP_Widget_Recent_Posts in default-widgets.php Doesn't Work With Persistent Caching
|Reported by:||brianwhite||Owned by:||azaozz|
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.
Change History (7)
- Keywords blocker commit added
- Milestone changed from Unassigned to 2.8.1
- Keywords needs-testing added; blocker commit WP_Widget_Recent_Posts wp_cache default-widgets removed