[buddypress-trac] [BuddyPress] #5142: class BP_Theme_Compat current_theme_supports('buddypress') check runs too early

buddypress-trac noreply at wordpress.org
Thu Aug 15 20:50:58 UTC 2013


#5142: class BP_Theme_Compat  current_theme_supports('buddypress') check runs too
early
--------------------------+-----------------------------
 Reporter:  hnla          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 It might be the case that the check for theme_support in 'class
 BP_Theme_Compat' might be running too early to get a value returned.

 If one accepts that theme setup functions should be run on the
 'after_setup_theme' hook then adding add_theme_support('buddypress') on
 this hook will not be found move it outside the hook and the check does
 return true and we do bail out of the class correctly.

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


More information about the buddypress-trac mailing list