Making WordPress.org


Ignore:
Timestamp:
07/07/2020 01:21:07 AM (6 years ago)
Author:
dd32
Message:

Theme Directory: Decode < and > HTML entities when converting the Theme Check results to Trac.

File:
1 edited

Legend:

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

    r10000 r10018  
    717717                $e = preg_replace( '!<span class=[^>]+>([^<]+)</span>!', '$1', $e );
    718718                $e = str_replace( '<br>', ' ', $e );
     719
     720                // Decode some entities.
     721                $e = preg_replace_callback( '!(&[lg]t;)!', function( $f ) {
     722                    return html_entity_decode( $f[0] );
     723                }, $e );
    719724
    720725                if ( 'INFO' !== substr( $e, 0, 4 ) ) {
Note: See TracChangeset for help on using the changeset viewer.