[buddypress-trac] [BuddyPress] #4669: 'bp_head' hook does not exist for theme compat

buddypress-trac noreply at wordpress.org
Sat Nov 17 09:27:51 UTC 2012

#4669: 'bp_head' hook does not exist for theme compat
 Reporter:  r-a-y         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  1.7
Component:  Theme         |    Version:  1.7
 Severity:  normal        |   Keywords:  has-patch
 bp-default has a hardcoded `do_action( 'bp_head' )` in its header.php.

 bp-legacy does not have such a hook.  So any code hooked to 'bp_head' will
 not run when a theme other than bp-default is activated.

 In r6529, I added the 'bp_head' hook to 'wp_head', but quickly reverted it
 due to backwards compatibility as explained in r6177.

 In 01.patch, I've added the `'bp_head'` hook to the `BP_Theme_Compat`
 class.  This is so any classes that extend it like `BP_Legacy` and
 `BP_TurtleShell` can inherit it.

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

More information about the buddypress-trac mailing list