Making WordPress.org

Changeset 4528


Ignore:
Timestamp:
12/14/2016 03:57:52 AM (10 years ago)
Author:
dd32
Message:

Theme Directory: When converting the Theme Check results into the Trac content, Strip out any <br> instances in the error message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

    r4483 r4528  
    599599                                $e = str_replace( '</pre>', "\r\n}}}\r\n", $e );
    600600                                $e = preg_replace( '!<span class="[^"]+">([^<]+)</span>!', '$1', $e );
    601                
     601                                $e = str_replace( '<br>', ' ', $e );
     602
    602603                                if ( 'INFO' !== substr( $e, 0, 4 ) ) {
    603604                                        $tc_results[] = '* ' . $e;
Note: See TracChangeset for help on using the changeset viewer.