WordPress.org

Make WordPress Core

Ticket #13288: wp_richhtml_pre_shortcode_unautop.diff

File wp_richhtml_pre_shortcode_unautop.diff, 446 bytes (added by aizatto, 12 years ago)

Adds a call to shortcode_unautop in wp_richedit_pre

  • trunk/wp-includes/formatting.php

     
    21232123
    21242124        $output = convert_chars($text);
    21252125        $output = wpautop($output);
     2126        $output = shortcode_unautop($output);
    21262127        $output = htmlspecialchars($output, ENT_NOQUOTES);
    21272128
    21282129        return apply_filters('richedit_pre', $output);