[wp-trac] [WordPress Trac] #12415: wp_enqueue_style doesn't observe proper dependency order

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 27 20:13:53 UTC 2010


#12415: wp_enqueue_style doesn't observe proper dependency order
--------------------------+-------------------------------------------------
 Reporter:  mtekk         |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  General       |     Version:  3.0        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by mtekk):

 Replying to [comment:2 nacin]:
 > CSS files don't have "dependencies". Nor would the media styles do
 nothing, just some rules may be overridden by global or wp-admin for any
 rules in media were designed to override global or wp-admin.

 Yeah, media doesn't do "nothing" but many of the values it is supposed to
 override from global and wp-admin don't get set :), which defeats its
 usefulness in some situations.

 > You should call CSS files in the order you want them...

 That's what I'm doing at the moment. It looks like the top code should
 have only output:

 load-styles.php?c=1&dir=ltr&load=media

 but something later added in global and wp-admin (caused a misdiagnosis of
 the cause).

 I guess this ticket could be closed, and a new one opened as a feature
 request to have a dependency hierarchy for the styles. This already seems
 to be allowed when including an external style, would be nice to do it
 with default styles as well (the parameter in wp_enqueue_style doesn't
 seem to work for default styles).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12415#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list