WordPress.org

Make WordPress Core

Ticket #28195: 28195.4.diff

File 28195.4.diff, 528 bytes (added by kovshenin, 4 years ago)
  • src/wp-admin/includes/ajax-actions.php

     
    25372537        setup_postdata( $post );
    25382538
    25392539        $parsed = $wp_embed->run_shortcode( $_POST['content'] );
    2540         if ( preg_match( '/' . get_shortcode_regex() . '/s', $parsed ) ) {
    2541                 $parsed = do_shortcode( $parsed );
    2542         }
     2540        $parsed = do_shortcode( $parsed );
    25432541        wp_send_json_success( $parsed );
    25442542}