Ticket #11574: 11574.diff
File 11574.diff, 637 bytes (added by , 14 years ago) |
---|
-
wordpress/wp-admin/import/wordpress.php
### Eclipse Workspace Patch 1.0 #P wordpress-tests
59 59 60 60 function get_tag( $string, $tag ) { 61 61 global $wpdb; 62 preg_match("|<$tag.*?>(.* ?)</$tag>|is", $string, $return);62 preg_match("|<$tag.*?>(.*)</$tag>|is", $string, $return); 63 63 if ( isset($return[1]) ) { 64 64 $return = preg_replace('|^<!\[CDATA\[(.*)\]\]>$|s', '$1', $return[1]); 65 65 $return = $wpdb->escape( trim( $return ) );