Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

codeのwpautop修正

  • Loading branch information...
commit 78a2e54027bc30df4e2b3efa4f51ea9e9ca60a21 1 parent 988fcaa
ma-ito authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  wp-includes/formatting.php
View
2  wp-includes/formatting.php
@@ -231,7 +231,7 @@ function wpautop($pee, $br = true) {
}
$pee = preg_replace("/\n\n+/", "\n\n", $pee); // take care of duplicates
$pee = preg_replace("/<code>\n+/", "<code>", $pee);
- $pee = preg_replace("/<\/code>\n+/", "<\/code>", $pee);
+ $pee = preg_replace("/<\/code>\n+/", "</code>", $pee);
// make paragraphs, including one at the end
$pees = preg_split('/\n\s*\n/', $pee, -1, PREG_SPLIT_NO_EMPTY);
$pee = '';
Please sign in to comment.
Something went wrong with that request. Please try again.