[wp-trac] [WordPress Trac] #45883: Recent Posts widget ignores private posts since replacing The Loop

WordPress Trac noreply at wordpress.org
Tue Mar 5 20:47:54 UTC 2019


#45883: Recent Posts widget ignores private posts since replacing The Loop
-----------------------------------------+-----------------------
 Reporter:  captain.crash                |       Owner:  audrasjb
     Type:  defect (bug)                 |      Status:  assigned
 Priority:  normal                       |   Milestone:  5.2
Component:  Widgets                      |     Version:  2.3
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch 2nd-opinion close  |     Focuses:
-----------------------------------------+-----------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch 2nd-opinion => has-patch 2nd-opinion close
 * version:  5.0.2 => 2.3


Comment:

 Limiting the recent entries query to published posts was done in [5973],
 changing the version accordingly.

 The current patch simply reverts that changeset. I agree with the concerns
 in comment:13, changing this now would make the widget output unsafe to
 cache.

 If someone needs to show private posts in Recent Posts widget, the
 `widget_posts_args` filter can be used for that.

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


More information about the wp-trac mailing list