[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 02:15:23 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:  close    |
---------------------+------------------

Comment (by boonebgorges):

 jjj's comment gave me an idea. How about:

 - Before bp-default enqueues its style, if the current theme is a child of
 bp-default, we parse (with php) the child theme's stylesheet to look for
 an @import rule for the bp-default css
 - if we find a match, we bail, letting the @import go through - no
 enqueuing.

 New themes will be encouraged to enqueue; old themes will continue to work
 a they used to. bp-default, used as a theme in itself, will enqueue.

 I can work up a patch tomorrow, but I wanted to throw the idea up here
 first, to see if anyone else thought that it sounded like a decent
 compromise.

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


More information about the buddypress-trac mailing list