mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +00:00
Fix quotes in captions. Props azaozz. see #6812
git-svn-id: https://develop.svn.wordpress.org/trunk@8290 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1124,18 +1124,10 @@ function wp_richedit_pre($text) {
|
||||
// Filtering a blank results in an annoying <br />\n
|
||||
if ( empty($text) ) return apply_filters('richedit_pre', '');
|
||||
|
||||
$output = $text;
|
||||
$output = convert_chars($output);
|
||||
$output = convert_chars($text);
|
||||
$output = wpautop($output);
|
||||
$output = htmlspecialchars($output, ENT_NOQUOTES);
|
||||
|
||||
// These must be double-escaped or planets will collide.
|
||||
$output = str_replace('<', '&lt;', $output);
|
||||
$output = str_replace('>', '&gt;', $output);
|
||||
|
||||
// These should be entities too
|
||||
$output = str_replace('<', '<', $output);
|
||||
$output = str_replace('>', '>', $output);
|
||||
|
||||
return apply_filters('richedit_pre', $output);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user