diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index bd5dda7e8a..5b63bf0005 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -286,12 +286,11 @@ final class _WP_Editors { // Back-compat for the `htmledit_pre` and `richedit_pre` filters if ( 'html' === $default_editor && has_filter( 'htmledit_pre' ) ) { - // TODO: needs _deprecated_filter(), use _deprecated_function() as substitute for now - _deprecated_function( 'add_filter( htmledit_pre )', '4.3.0', 'add_filter( format_for_editor )' ); - $content = apply_filters( 'htmledit_pre', $content ); + /** This filter is documented in wp-includes/deprecated.php */ + $content = apply_filters_deprecated( 'htmledit_pre', array( $content ), '4.3.0', 'format_for_editor' ); } elseif ( 'tinymce' === $default_editor && has_filter( 'richedit_pre' ) ) { - _deprecated_function( 'add_filter( richedit_pre )', '4.3.0', 'add_filter( format_for_editor )' ); - $content = apply_filters( 'richedit_pre', $content ); + /** This filter is documented in wp-includes/deprecated.php */ + $content = apply_filters_deprecated( 'richedit_pre', array( $content ), '4.3.0', 'format_for_editor' ); } if ( false !== stripos( $content, 'textarea' ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 5203d1912b..f3b7d10da2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43463'; +$wp_version = '5.0-alpha-43464'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.