Make WordPress Core

Ticket #45397: 45397.patch

File 45397.patch, 503 bytes (added by vaishalipanchal, 5 years ago)
  • wordpress/wp-includes/blocks.php

    diff -Naur wordpress/wp-includes/blocks.php wordpress/wp-includes/blocks.php
     
    266266 * @return string The unmodified content.
    267267 */
    268268function _restore_wpautop_hook( $content ) {
    269         global $wp_filter;
     269
    270270        $current_priority = has_filter( 'the_content', '_restore_wpautop_hook' );
    271271
    272272        add_filter( 'the_content', 'wpautop', $current_priority - 1 );