diff --git a/src/wp-includes/admin-bar.php b/src/wp-includes/admin-bar.php
index 19322a3451..ddcbcdf007 100644
|
a
|
b
|
function wp_admin_bar_customize_menu( $wp_admin_bar ) {
|
| 463 | 463 | return; |
| 464 | 464 | } |
| 465 | 465 | |
| 466 | | $current_url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; |
| | 466 | $current_url = ( is_ssl() ? 'https://' : 'http://' ) . sanitize_text_field( $_SERVER['HTTP_HOST'] ) . sanitize_text_field( $_SERVER['REQUEST_URI'] ); |
| 467 | 467 | if ( is_customize_preview() && $wp_customize->changeset_uuid() ) { |
| 468 | 468 | $current_url = remove_query_arg( 'customize_changeset_uuid', $current_url ); |
| 469 | 469 | } |
| … |
… |
function wp_admin_bar_add_secondary_groups( $wp_admin_bar ) {
|
| 1198 | 1198 | function wp_admin_bar_header() { |
| 1199 | 1199 | $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"'; |
| 1200 | 1200 | ?> |
| 1201 | | <style<?php echo $type_attr; ?> media="print">#wpadminbar { display:none; }</style> |
| | 1201 | <style<?php echo esc_attr( $type_attr ); ?> media="print">#wpadminbar { display:none; }</style> |
| 1202 | 1202 | <?php |
| 1203 | 1203 | } |
| 1204 | 1204 | |
| … |
… |
function wp_admin_bar_header() {
|
| 1210 | 1210 | function _admin_bar_bump_cb() { |
| 1211 | 1211 | $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"'; |
| 1212 | 1212 | ?> |
| 1213 | | <style<?php echo $type_attr; ?> media="screen"> |
| | 1213 | <style<?php echo esc_attr( $type_attr ); ?> media="screen"> |
| 1214 | 1214 | html { margin-top: 32px !important; } |
| 1215 | 1215 | @media screen and ( max-width: 782px ) { |
| 1216 | 1216 | html { margin-top: 46px !important; } |