diff -r c7c34916027a -r 177826044cd9 wp/wp-includes/functions.wp-styles.php --- a/wp/wp-includes/functions.wp-styles.php Mon Oct 14 18:06:33 2019 +0200 +++ b/wp/wp-includes/functions.wp-styles.php Mon Oct 14 18:28:13 2019 +0200 @@ -67,7 +67,7 @@ /** * Add extra CSS styles to a registered stylesheet. * - * Styles will only be added if the stylesheet in already in the queue. + * Styles will only be added if the stylesheet is already in the queue. * 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. @@ -84,12 +84,16 @@ _wp_scripts_maybe_doing_it_wrong( __FUNCTION__ ); if ( false !== stripos( $data, '' ) ) { - _doing_it_wrong( __FUNCTION__, sprintf( - /* translators: 1: #is', '$1', $data ) ); } @@ -106,7 +110,8 @@ * @since 4.3.0 A return value was added. * * @param string $handle Name of the stylesheet. Should be unique. - * @param string $src Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory. + * @param string|bool $src Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory. + * If source is set to false, stylesheet is an alias of other stylesheets it depends on. * @param array $deps Optional. An array of registered stylesheet handles this stylesheet depends on. Default empty array. * @param string|bool|null $ver Optional. String specifying stylesheet version number, if it has one, which is added to the URL * as a query string for cache busting purposes. If version is set to false, a version @@ -167,7 +172,7 @@ $wp_styles = wp_styles(); if ( $src ) { - $_handle = explode('?', $handle); + $_handle = explode( '?', $handle ); $wp_styles->add( $_handle[0], $src, $deps, $ver, $media ); } $wp_styles->enqueue( $handle );