[wp-trac] [WordPress Trac] #33306: Only Query for author ID if user is member of blog

WordPress Trac noreply at wordpress.org
Fri Sep 4 05:56:14 UTC 2015


#33306: Only Query for author ID if user is member of blog
-------------------------+-------------------------------------
 Reporter:  sboisvert    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Query        |     Version:  4.3
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  multisite, performance
-------------------------+-------------------------------------

Comment (by jeremyfelt):

 The `current_user_can()` check makes sense. Having a single query would be
 a benefit for many authenticated subscriber page views. I'd agree that
 benchmarks would be nice to see to help quantify.

 The edge cases I'm imagining are very edgy. I could see trying something
 funky with a custom post type, subscribers or a custom role, and
 `post_author` that also relies on the private flag, but then you're pretty
 far out there. I wouldn't be too concerned with the impact on default
 posts, site members, and roles.

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


More information about the wp-trac mailing list