[buddypress-trac] [BuddyPress Trac] #5413: Don't query for item counts in profile nav when not needed
buddypress-trac
noreply at wordpress.org
Sat Feb 22 21:21:22 UTC 2014
#5413: Don't query for item counts in profile nav when not needed
--------------------------+---------------------
Reporter: r-a-y | Owner: r-a-y
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.0
Component: Core | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch |
--------------------------+---------------------
Changes (by r-a-y):
* owner: => r-a-y
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"7966"]:
{{{
#!CommitTicketReference repository="" revision="7966"
Don't fetch item counts in profile navigation unnecessarily.
Previously, when a component's setup_nav() method is fired, the item
count for the component is fetched without any conditional checks.
This causes unneccessary queries to be fired when a user isn't logged
in or when we're not on a single user page.
This commit only fetches the item count in the profile nav if we're
currently on a single user page and/or if the current user has access
to the component nav item.
Fixes #5413
Props r-a-y, boonebgorges
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5413#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list