Skip to:
Content

Opened 4 years ago

Closed 3 years ago

#2537 closed defect (bug) (invalid)

bp_core_catch_no_access() not called from anywhere

Reported by: caplain Owned by:
Milestone: 1.5 Priority: normal
Severity: Version:
Component: Groups Keywords: groups invites
Cc:

Description

As far as I can tell,/bp-core/bp-core-catchuri.php:function bp_core_catch_no_access() is not actually called from anywhere. I thought it would be called in bp_before_group_invites_content(), which is called via a do_action in /bp-themes/bp-default/members/single/groups/invites.php, but it doesn't seem to be declared anywhere:

/htdocs/wp-content/plugins/buddypress$ grep -r "function bp_before_group_invites_content" ./ found nothing.

Change History (3)

comment:1 caplain4 years ago

This should really be two bugs, but I think it helps to explain the problem to include both for now.

comment:2 ethitter4 years ago

If I understand correctly, you're expecting a specific call to bp_core_catch_no_access somewhere within the BuddyPress functions. But, because of the add_action hook that immediately follows the function definition, it doesn't need to be called anywhere. It is automatically executed each time WordPress is initialized [see wp-includes/classes.php: WP->main() ].

If my understanding is correct, can we mark this ticket as resolved?

comment:3 wpmuguru3 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Per the comment above, it is called through http://trac.buddypress.org/browser/branches/1.2/bp-core/bp-core-catchuri.php#L285 (Rev 3233).

Many of the functions in BuddyPress are not called directly by BP code.

Note: See TracTickets for help on using tickets.