Create wp_print_styles() to match wp_print_scripts()
|Reported by:||mdawaffe||Owned by:||mdawaffe|
I've just updated backPress to include both WP_Scripts and WP_Styles both of which inherit from WP_Dependencies (a generic "this thing depends on that thing" class).
Attached is a patch that converts WP over to the backPress classes.
Scripts work just fine; the API has not changed, and the class methods themselves are all backward compatible. Styles are there, but nothing uses them right now. WP should probably have a wp_default_styles() function (analogous to the patch's wp_default_scripts() function).
I don't know if we'll use the dependency functionality much for stylesheets (like we do for scripts), or if we just want to use it as a stylesheet queue/loader.
The new files have names that adhere to the backPress naming "standard" (a made up, arbitrary standard). We can name them whatever we like.
svn stat A wp-includes/class.wp-dependencies.php A wp-includes/class.wp-scripts.php A wp-includes/class.wp-styles.php A wp-includes/functions.wp-scripts.php A wp-includes/functions.wp-styles.php M wp-includes/default-filters.php M wp-includes/script-loader.php M wp-admin/admin-header.php
Change History (13)
- Owner changed from anonymous to mdawaffe
- Status changed from new to assigned