Make WordPress Core

Opened 12 months ago

Last modified 11 hours ago

#46968 reviewing defect (bug)

Editors can't search for private posts through Search widget

Reported by: cecilerainon Owned by: audrasjb
Milestone: 5.5 Priority: normal
Severity: normal Version:
Component: Widgets Keywords: needs-patch
Focuses: Cc:


When a user is an Editor, they can't search for other users' private posts through the Search widget on the front end. However, they can see these posts in WP Admin or on the author's archive page (site.com/author/username). I would expect this behavior to be either or but not a mix of the two.

To reproduce:

  • Have a site with the core Search widget added to either the sidebar or footer.
  • As an Administrator, publish and set a post to private.
  • Connect to the Editor’s account and do the following to witness the inconsistency:

Tested on WordPress 5.1.1 sites. This happens regardless of the browser or theme, with or without plugins, and with or without Jetpack activated.

Change History (2)

#1 @audrasjb
11 months ago

  • Keywords needs-patch added
  • Owner set to audrasjb
  • Status changed from new to reviewing

Hi @cecilerainon, welcome to WordPress Core Trac and… "merci pour le ticket" :-)

Self-assigning the ticket for review.


Last edited 11 months ago by audrasjb (previous) (diff)

#2 @audrasjb
11 hours ago

  • Milestone changed from Awaiting Review to 5.5
  • Severity changed from minor to normal
  • Version 5.1.1 deleted
Note: See TracTickets for help on using tickets.