#10251 closed defect (bug) (fixed)
WP_Widget_Recent_Posts in default-widgets.php Doesn't Work With Persistent Caching
Reported by: | brianwhite | Owned by: | azaozz |
---|---|---|---|
Milestone: | 2.8.1 | Priority: | normal |
Severity: | normal | Version: | 2.8 |
Component: | Widgets | Keywords: | tested |
Focuses: | Cc: |
Description
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.
Attachments (2)
Change History (7)
#2
@
16 years ago
- Keywords needs-testing added; blocker commit WP_Widget_Recent_Posts wp_cache default-widgets removed
The original patch seems wrong, it should exit the function after echoing the widget content.
#3
@
16 years ago
- Keywords tested added; needs-testing removed
to test, call the widget twice artificially.
Note: See
TracTickets for help on using
tickets.
Patch for\default-widgets.php