Make WordPress Core

Ticket #11574: 11574.diff

File 11574.diff, 637 bytes (added by westi, 14 years ago)

This fixes it for me.

  • wordpress/wp-admin/import/wordpress.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-tests
     
    5959
    6060        function get_tag( $string, $tag ) {
    6161                global $wpdb;
    62                 preg_match("|<$tag.*?>(.*?)</$tag>|is", $string, $return);
     62                preg_match("|<$tag.*?>(.*)</$tag>|is", $string, $return);
    6363                if ( isset($return[1]) ) {
    6464                        $return = preg_replace('|^<!\[CDATA\[(.*)\]\]>$|s', '$1', $return[1]);
    6565                        $return = $wpdb->escape( trim( $return ) );