wp-includes/script-loader.php:2409Prints styles (internal use only).
function _print_styles() { global $compress_css; $wp_styles = wp_styles(); $zip = $compress_css ? 1 : 0; if ( $zip && defined( 'ENFORCE_GZIP' ) && ENFORCE_GZIP ) { $zip = 'gzip'; } $concat = trim( $wp_styles->concat, ', ' ); if ( $concat ) { $dir = $wp_styles->text_direction; $ver = $wp_styles->default_version; $concat_source_url = 'css-inline-concat-' . $concat; $concat = str_split( $concat, 128 ); $concatenated = ''; foreach ( $concat as $key => $chunk ) { $concatenated .= "&load%5Bchunk_{$key}%5D={$chunk}"; } $href = $wp_styles->base_url . "/wp-admin/load-styles.php?c={$zip}&dir={$dir}" . $concatenated . '&ver=' . $ver; echo "<link rel='stylesheet' href='" . esc_attr( $href ) . "' media='all' />\n"; if ( ! empty( $wp_styles->print_code ) ) { $processor = new WP_HTML_Tag_Processor( '<style></style>' ); $processor->next_tag(); $style_tag_contents = "\n{$wp_styles->print_code}\n" . sprintf( "/*# sourceURL=%s */\n", rawurlencode( $concat_source_url ) ); $processor->set_modifiable_text( $style_tag_contents ); echo "{$processor->get_updated_html()}\n"; } } if ( ! empty( $wp_styles->print_html ) ) { echo $wp_styles->print_html; }}Introduced in 3.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/script-loader.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.