[wp-trac] [WordPress Trac] #7011: Create wp_print_styles() to match
wp_print_scripts()
WordPress Trac
wp-trac at lists.automattic.com
Wed May 21 01:05:19 GMT 2008
#7011: Create wp_print_styles() to match wp_print_scripts()
-------------------------+--------------------------------------------------
Reporter: mdawaffe | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.6
Component: General | Version: 2.5.1
Severity: normal | Keywords: backpress has-patch
-------------------------+--------------------------------------------------
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
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/7011>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list