[buddypress-trac] [BuddyPress] #3020: bp_loaded is fired too early

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Mar 11 22:53:05 UTC 2011


#3020: bp_loaded is fired too early
---------------------------+-----------------
  Reporter:  boonebgorges  |      Owner:
      Type:  defect        |     Status:  new
  Priority:  major         |  Milestone:  1.3
 Component:  Core          |    Version:
Resolution:                |   Keywords:
---------------------------+-----------------

Comment (by boonebgorges):

 It is, but that doesn't really mean that BP is "loaded" in the sense that
 a BP plugin developer might expect. For that, you would expect things like
 bp_setup_globals, bp_setup_nav, etc to already have been run. But because
 those are hooked to bp_init, which is hooked to init, which is fired
 *after* plugins_loaded, the order of the hooks seems counterintuitive.

 I see from looking at the source for the 1.2 branch that those actions
 (bp_setup_globals, etc) used to be hooked to bp_loaded, so that something
 hooked to bp_loaded with priority 10 would load after that stuff. In 1.3,
 most of these things have been moved to bp_init, which loads later. So
 maybe we just don't need bp_loaded anymore? I don't know.

 I find the whole thing a bit confusing, and would welcome feedback :)

-- 
Ticket URL: <https://trac.buddypress.org/ticket/3020#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list