[buddypress-trac] [BuddyPress] #4949: Revise enqueue style locations for theme compat

buddypress-trac noreply at wordpress.org
Tue Apr 23 13:50:41 UTC 2013


#4949: Revise enqueue style locations for theme compat
-------------------------+--------------------------------------
 Reporter:  hnla         |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  low          |  Milestone:  Awaiting Review
Component:  Theme        |    Version:
 Severity:  normal       |   Keywords:  legacy, style enqueueing
-------------------------+--------------------------------------
 As we can create '/community', '/buddypress' folders in theme root as well
 as custom primary template file in those folders root e.g 'buddypress.php'
 it makes sense that we also can move the folder'/css/buddypress.css' into
 this position as well, rather than have to have it live in theme root
 seeming a little orphaned?

 Attached patch re-writes the file_exists checks to include the two
 possible alternative locations for stylesheets and attempts to condense
 code lines using is_child_theme() checks for switching
 stylesheet/template_directory paths.

 This patch doesn't take into account the js enqueueing, which is perhaps
 lees of a concern for end user to be moving about if they should be at
 all, but this can be matched to stylesheet block if proposal thought
 acceptable.

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


More information about the buddypress-trac mailing list