mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Introduce WP_Dependencies::get_data() method, change scripts and styles priority to follow the "natural" order in HTML, i.e. the last one wins, props scribu, see #11520
git-svn-id: https://develop.svn.wordpress.org/trunk@18480 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -37,7 +37,9 @@ function wp_print_styles( $handles = false ) {
|
||||
* Adds extra CSS.
|
||||
*
|
||||
* Works only if the stylesheet has already been added.
|
||||
* Accepts a string $data containing the CSS.
|
||||
* Accepts a string $data containing the CSS. If two or more CSS code blocks are
|
||||
* added to the same stylesheet $handle, they will be printed in the order
|
||||
* they were added, i.e. the latter added styles can redeclare the previous.
|
||||
*
|
||||
* @since 3.3
|
||||
* @see WP_Scripts::add_inline_style()
|
||||
|
||||
Reference in New Issue
Block a user