﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
7011,Create wp_print_styles() to match wp_print_scripts(),mdawaffe,mdawaffe,"I've just updated [http://svn.automattic.com/backpress/trunk/includes/ 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
}}}",enhancement,closed,normal,2.6,General,2.5.1,normal,fixed,backpress has-patch,
