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

WordPress Trac noreply at wordpress.org
Mon Jun 1 16:19:14 UTC 2020


#46968: Editors can't search for private posts through Search widget
-------------------------------------------------+------------------------
 Reporter:  cecilerainon                         |       Owner:  (none)
     Type:  enhancement                          |      Status:  reviewing
 Priority:  normal                               |   Milestone:  5.5
Component:  Query                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  2nd-opinion has-patch needs-refresh  |     Focuses:
-------------------------------------------------+------------------------
Changes (by samful):

 * keywords:  needs-patch 2nd-opinion => 2nd-opinion has-patch needs-refresh


Comment:

 I debugged this myself and came across the same “current_user_can(
 "read_private_anys" )” issue as inbytesinc did 10 years ago. I believe the
 fix in 13509 ([https://core.trac.wordpress.org/ticket/13509]) needs to be
 tested and committed to fix this issue.

 If it helps, I also found another fix for this issue here:
 https://wordpress.stackexchange.com/questions/110569/private-posts-pages-
 search

 @whyisjake please look at ticket 13509 as there definitely seems to an
 issue with that IF statement and this issue has been around for 10 years
 by the look of it :(

 I believe @cecilerainon is correct here and WordPress should be working in
 the way she expects.

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


More information about the wp-trac mailing list