Ticket #1250: 1250.diff
| File 1250.diff, 541 bytes (added by , 11 years ago) |
|---|
-
inc/formatting.php
180 180 // Only apply to parsed content that have the em tag. 181 181 if ( DevHub\is_parsed_post_type( $post_type ) && false !== strpos( $content, '<em>' ) ) { 182 182 $content = preg_replace_callback( 183 '/([^\s])<em>(.+)<\/em> /',183 '/([^\s])<em>(.+)<\/em>(?!<\/p>)/', 184 184 function ( $matches ) { 185 185 return $matches[1] . '_' . $matches[2] . '_'; 186 186 },