Uses
| Uses | Description |
|---|---|
| wp-includes/theme.php: current_theme_supports() | Checks a theme’s support for a given feature. |
Style and scripts for the admin bar.
File: wp-includes/admin-bar.php
function wp_admin_bar_header() {
$type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
?>
<style<?php echo $type_attr; ?> media="print">#wpadminbar { display:none; }</style>
<?php
} | Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_admin_bar_header