Changeset 1914
- Timestamp:
- 09/27/2015 05:26:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php
r1138 r1914 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>/',
Note: See TracChangeset
for help on using the changeset viewer.