wp_enqueue_style doesn't observe proper dependency order
|Reported by:||mtekk||Owned by:|
Since load-styles.php blindly loads styles in the order they are requested from it, it is vital that these are requested in the proper order. If someone calls
wp_enqueue_style will produce the following dependency load:
This is bad as media depends on global and wp-admin, and must be loaded after global and wp-admin. Otherwise the cascading nature of CSS causes media's styles to do nothing. It should produce something like:
This actually looks to be an issue with WP_Dependencies, possibly broken logic in WP_Dependencies::all_deps, though I'm not sure if this is the case as wp_enqueue_scripts doesn't seem to be broken. This behavior was observed in r13462.
Change History (4)
- Summary changed from wp_enqueue_style doesn't obeserve proper dependency order to wp_enqueue_style doesn't observe proper dependency order