WordPress.org

Make WordPress Core

Opened 7 months ago

Last modified 7 months ago

#46968 reviewing defect (bug)

Editors can't search for private posts through Search widget

Reported by: cecilerainon Owned by: audrasjb
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 5.1.1
Component: Widgets Keywords: needs-patch
Focuses: Cc:
PR Number:

Description

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 (1)

#1 @audrasjb
7 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.

Cheers,
Jb

Last edited 7 months ago by audrasjb (previous) (diff)
Note: See TracTickets for help on using tickets.