diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 6680bca89691a..bd5039df59c3f 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -589,8 +589,8 @@ function list_meta( $meta ) { - - + + @@ -604,8 +604,8 @@ function list_meta( $meta ) { - - + + @@ -1038,7 +1038,7 @@ function wp_import_upload_form( $action ) { ?> - +

@@ -1383,7 +1383,7 @@ function do_meta_boxes( $screen, $context, $data_object ) { __( 'Warning:' ) . ' '; } - echo $box['title']; + echo esc_html( $box['title'] ); echo "\n"; if ( 'dashboard_browser_nag' !== $box['id'] ) { @@ -1780,7 +1780,7 @@ function do_settings_sections( $page ) { } if ( $section['title'] ) { - echo "

{$section['title']}

\n"; + echo '

' . esc_html( $section['title'] ) . "

\n"; } if ( $section['callback'] ) { @@ -1830,9 +1830,9 @@ function do_settings_fields( $page, $section ) { echo ""; if ( ! empty( $field['args']['label_for'] ) ) { - echo ''; + echo ''; } else { - echo ''; + echo ''; } echo '
' . $field['title'] . '' . esc_html( $field['title'] ) . ''; @@ -2015,7 +2015,7 @@ function settings_errors( $setting = '', $sanitize = false, $hide_on_update = fa ); $output .= "
\n"; - $output .= "

{$details['message']}

"; + $output .= '

' . wp_kses_post( $details['message'] ) . '

'; $output .= "
\n"; } @@ -2139,7 +2139,7 @@ function iframe_header( $title = '', $deprecated = false ) { header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); _wp_admin_html_begin(); ?> -<?php bloginfo( 'name' ); ?> › <?php echo $title; ?> — <?php _e( 'WordPress' ); ?> +<?php bloginfo( 'name' ); ?> › <?php echo esc_html( $title ); ?> — <?php _e( 'WordPress' ); ?> @@ -2186,7 +2186,7 @@ function tb_close(){var win=window.dialogArguments||opener||parent||top;win.tb_r ?> {$state}{$suffix}"; + $post_states_html .= '' . esc_html( $state ) . esc_html( $suffix ) . ''; } } @@ -2396,7 +2396,7 @@ function _media_states( $post, $display = true ) { $suffix = ( $i < $state_count ) ? $separator : ''; - $media_states_string .= "{$state}{$suffix}"; + $media_states_string .= '' . esc_html( $state ) . esc_html( $suffix ) . ''; } }