Ticket #1250: 1250.2.diff
| File 1250.2.diff, 672 bytes (added by , 11 years ago) |
|---|
-
inc/formatting.php
178 178 */ 179 179 public static function fix_unintended_markdown( $content, $post_type = null ) { 180 180 // Only apply to parsed content that have the em tag. 181 if ( DevHub\is_parsed_post_type( $post_type ) && false !== strpos( $content, '<em>' ) ) { 181 if ( DevHub\is_parsed_post_type( $post_type ) 182 && false !== strpos( $content, '<em>' ) 183 && false === strpos( $content, '<p>' ) 184 ) { 182 185 $content = preg_replace_callback( 183 186 '/([^\s])<em>(.+)<\/em>/', 184 187 function ( $matches ) {