diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
index b89a899d55..6044469037 100644
a
|
b
|
function do_meta_boxes( $screen, $context, $object ) { |
1099 | 1099 | |
1100 | 1100 | $hidden = get_hidden_meta_boxes( $screen ); |
1101 | 1101 | |
1102 | | printf( '<div id="%s-sortables" class="meta-box-sortables">', htmlspecialchars( $context ) ); |
| 1102 | printf( '<div id="%s-sortables" class="meta-box-sortables">', esc_attr( $context, $flags = NULL, $encoding = 'UTF-8' ) ); |
1103 | 1103 | |
1104 | 1104 | // Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose |
1105 | 1105 | if ( ! $already_sorted && $sorted = get_user_option( "meta-box-order_$page" ) ) { |
diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php
index bd5dda7e8a..3947343568 100644
a
|
b
|
final class _WP_Editors { |
284 | 284 | remove_filter( 'the_editor_content', 'format_for_editor' ); |
285 | 285 | } |
286 | 286 | |
| 287 | // Back-compat for the `htmledit_pre` and `richedit_pre` filters |
287 | 288 | // Back-compat for the `htmledit_pre` and `richedit_pre` filters |
288 | 289 | if ( 'html' === $default_editor && has_filter( 'htmledit_pre' ) ) { |
289 | | // TODO: needs _deprecated_filter(), use _deprecated_function() as substitute for now |
290 | | _deprecated_function( 'add_filter( htmledit_pre )', '4.3.0', 'add_filter( format_for_editor )' ); |
291 | | $content = apply_filters( 'htmledit_pre', $content ); |
| 290 | $content = apply_filters_deprecated( 'htmledit_pre', array( $content ), '4.3.0', 'format_for_editor' ); |
292 | 291 | } elseif ( 'tinymce' === $default_editor && has_filter( 'richedit_pre' ) ) { |
293 | | _deprecated_function( 'add_filter( richedit_pre )', '4.3.0', 'add_filter( format_for_editor )' ); |
294 | | $content = apply_filters( 'richedit_pre', $content ); |
| 292 | $content = apply_filters_deprecated( 'richedit_pre', array( $content ), '4.3.0', 'format_for_editor' ); |
295 | 293 | } |
296 | 294 | |
297 | 295 | if ( false !== stripos( $content, 'textarea' ) ) { |
diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
index cb06297b57..1e7f5598a6 100644
a
|
b
|
if ( ! function_exists( 'wp_mail' ) ) : |
454 | 454 | $phpmailer->CharSet = apply_filters( 'wp_mail_charset', $charset ); |
455 | 455 | |
456 | 456 | // Set custom headers |
457 | | if ( ! empty( $headers ) ) { |
458 | | foreach ( (array) $headers as $name => $content ) { |
459 | | $phpmailer->addCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) ); |
460 | | } |
| 457 | if ( !empty( $headers ) ) { |
| 458 | foreach ( (array) $headers as $name => $content ) { |
| 459 | // Only add custom header if not one that will be added automatically |
| 460 | // by wp-includes/class-phpmailer.php |
| 461 | if ( ( 'MIME-Version' !== $name ) && ( 'X-Mailer' !== $name ) ) { |
| 462 | $phpmailer->addCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) ); |
| 463 | } |
| 464 | } |
461 | 465 | |
462 | 466 | if ( false !== stripos( $content_type, 'multipart' ) && ! empty( $boundary ) ) { |
463 | 467 | $phpmailer->addCustomHeader( sprintf( "Content-Type: %s;\n\t boundary=\"%s\"", $content_type, $boundary ) ); |
… |
… |
if ( ! function_exists( 'wp_text_diff' ) ) : |
2733 | 2737 | return $r; |
2734 | 2738 | } |
2735 | 2739 | endif; |
2736 | | |