Make WordPress Core

Ticket #58366: 58366.diff

File 58366.diff, 929 bytes (added by bekk, 3 years ago)

For review

  • wp-includes/blocks/block.php

    diff --git a/wp-includes/blocks/block.php b/wp-includes/blocks/block.php
    index d51b35d..47f59eb 100644
    a b function render_block_core_block( $attributes ) { 
    4646        $content = $wp_embed->run_shortcode( $reusable_block->post_content );
    4747        $content = $wp_embed->autoembed( $content );
    4848
     49        $content = shortcode_unautop( $content );
     50        $content = do_shortcode( $content );
     51
    4952        $content = do_blocks( $content );
    5053        unset( $seen_refs[ $attributes['ref'] ] );
    5154        return $content;
  • wp-includes/blocks/shortcode.php

    diff --git a/wp-includes/blocks/shortcode.php b/wp-includes/blocks/shortcode.php
    index 97a40b3..bb0b0da 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/**