[buddypress-trac] [BuddyPress] #3674: bp_core_catch_no_access() hooked too late

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Oct 11 13:55:05 UTC 2011

#3674: bp_core_catch_no_access() hooked too late
 Reporter:  boonebgorges  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  1.6
Component:  Core          |    Version:  1.5
 Severity:  normal        |   Keywords:  dev-feedback
 bp_core_catch_no_access() is hooked to wp with priority 10. This means
 that, in practice, it hardly ever fires, since all screen and action
 functions are hooked to wp at 3 and 4 (via bp_actions and bp_screens).

 I'm not sure if this is intentional. On one hand, it seems correct -
 bp_core_catch_no_access(), and especially its bp_do_404() call, ought to
 be the last-ditch check before BP bails completely. On the other hand, if
 the function is going to contain any logic for preventing access to
 protected resources, it needs to run *before* anything else.

 See also #3666.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3674>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list