[buddypress-trac] [BuddyPress] #3389: Enqueueing CSS of bp-default breaks child theme layouts

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Aug 31 21:48:10 UTC 2011

#3389: Enqueueing CSS of bp-default breaks child theme layouts
 Reporter:  mercime    |       Owner:
     Type:  defect     |      Status:  new
 Priority:  normal     |   Milestone:  1.5
Component:  Theme      |     Version:
 Severity:  normal     |  Resolution:
 Keywords:  has-patch  |

Comment (by r-a-y):

 The problem with this approach is this assumes that the child theme's
 stylesheet uses an @import rule.

 This also doesn't solve the problem of child themes that have the
 stylesheet hardcoded.

 I am revisiting
 [http://buddypress.trac.wordpress.org/ticket/3389#comment:9 the object
 buffering idea I had].  Output buffer from 'get_header' to 'wp_head' at
 priority 0.  Check to see if a stylesheet is hardcoded, if so use a
 version of Boone's patch to enqueue it while still in the 'wp_head' action
 at zero.

 Since the 'wp_print_styles' hook hits wp_head at priority 8, this still
 gives us enough time to enqueue the stylesheet if necessary.

 I'm going to test out my theory.  If it works out well, I'll attach a
 patch ;)

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3389#comment:41>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list