WordPress.org

Making WordPress.org

Changeset 5579


Ignore:
Timestamp:
06/15/17 23:02:59 (6 months ago)
Author:
coffee2code
Message:

developer.wordpress.org: Change regex in fix_unintended_markdown() to be ungreedy.

Examples:

Fixes #2881.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php

    r5578 r5579  
    226226        if ( DevHub\is_parsed_post_type( $post_type ) && false !== strpos( $content, '<em>' ) ) { 
    227227            $content = preg_replace_callback( 
    228                 '/([^\s])<em>(.+)<\/em>/', 
     228                '/([^\s])<em>(.+)<\/em>/U', 
    229229                function ( $matches ) { 
    230230                    return $matches[1] . '_' . $matches[2] . '_'; 
Note: See TracChangeset for help on using the changeset viewer.