[buddypress-trac] [BuddyPress Trac] #6866: `bp_activity_get_post_types_tracking_args()` is called too frequently
buddypress-trac
noreply at wordpress.org
Tue Feb 2 10:38:03 UTC 2016
#6866: `bp_activity_get_post_types_tracking_args()` is called too frequently
----------------------------------+------------------------------
Reporter: boonebgorges | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Component - Activity | Version:
Severity: normal | Resolution:
Keywords: |
----------------------------------+------------------------------
Comment (by imath):
To be honest i'm feeling pretty insecure here. My first thought is "we
need to wait till all post type registered"
something like
{{{
function bp_inited() {
do_action( 'bp_inited' );
}
add_action( 'init', 'bp_inited', 10000 );
}}}
And in the function something like
` if ( ! isset( $args ) || ! did_action( 'bp_inited' ) ) {`
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6866#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list