[wp-trac] [WordPress Trac] #46968: Editors can't search for private posts through Search widget

WordPress Trac noreply at wordpress.org
Thu Apr 18 07:33:23 UTC 2019


#46968: Editors can't search for private posts through Search widget
--------------------------+-----------------------------
 Reporter:  cecilerainon  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  5.1.1
 Severity:  minor         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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:

 * 1) Go to WP Admin > Posts. You'll see you can search for the post:
 https://cld.wthms.co/0kU4KD
 * 2) Visit the site and search for the post in the Search widget. You'll
 get a "Nothing Found" result: https://cld.wthms.co/GXViwg
 * 3) Visit the author's archive. You'll see the private post listed:
 https://cld.wthms.co/jgz7s7

 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46968>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list