Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/wp-includes/kses.php
Original file line number Diff line number Diff line change
Expand Up @@ -1097,8 +1097,6 @@ function _wp_kses_split_callback( $matches ) {
* @return string Fixed HTML element
*/
function wp_kses_split2( $content, $allowed_html, $allowed_protocols ) {
$content = wp_kses_stripslashes( $content );

/*
* The regex pattern used to split HTML into chunks attempts
* to split on HTML token boundaries. This function should
Expand Down Expand Up @@ -1820,10 +1818,13 @@ function wp_kses_no_null( $content, $options = null ) {
*
* @since 1.0.0
*
* @deprecated 6.9.0 Not necessary since the `e` PCRE modifier was removed in PHP 7.0.
*
* @param string $content String to strip slashes from.
* @return string Fixed string with quoted slashes.
*/
function wp_kses_stripslashes( $content ) {
_deprecated_function( __FUNCTION__, '6.9.0' );
return preg_replace( '%\\\\"%', '"', $content );
}

Expand Down
Loading