Make WordPress Core

Ticket #52567: shortcode-p-tag.diff

File shortcode-p-tag.diff, 993 bytes (added by juzar, 12 months ago)

shortcode p tag issue dif

  • src/wp-includes/blocks/shortcode.php

    diff --git a/src/wp-includes/blocks/shortcode.php b/src/wp-includes/blocks/shortcode.php
    index 97a40b386d..05f51bf0ae 100644
    a b  
    1414 * @return string Returns the block content.
    1515 */
    1616function render_block_core_shortcode( $attributes, $content ) {
    17         return wpautop( $content );
     17        return  $content;
    1818}
    1919
    2020/**
  • src/wp-includes/default-filters.php

    diff --git a/src/wp-includes/default-filters.php b/src/wp-includes/default-filters.php
    index 82b579913a..c9480ac253 100644
    a b add_action( 'template_redirect', 'redirect_canonical' ); 
    618618add_action( 'template_redirect', 'wp_redirect_admin_locations', 1000 );
    619619
    620620// Shortcodes.
    621 add_filter( 'the_content', 'do_shortcode', 11 ); // AFTER wpautop().
     621add_filter( 'the_content', 'do_shortcode', 9 ); // AFTER wpautop().
    622622
    623623// Media.
    624624add_action( 'wp_playlist_scripts', 'wp_playlist_scripts' );