Changeset 5711
- Timestamp:
- 06/15/2007 05:22:38 PM (16 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/export.php
r5700 r5711 132 132 your blog. It contains information about your blog's posts, comments, and 133 133 categories. You may use this file to transfer that content from one site to 134 another. This file is not intended to serve as a complete backup of your 134 another. This file is not intended to serve as a complete backup of your 135 135 blog. 136 136 … … 204 204 <wp:comment> 205 205 <wp:comment_id><?php echo $c->comment_ID; ?></wp:comment_id> 206 <wp:comment_author><?php echo $c->comment_author; ?></wp:comment_author>206 <wp:comment_author><?php echo wxr_cdata($c->comment_author); ?></wp:comment_author> 207 207 <wp:comment_author_email><?php echo $c->comment_author_email; ?></wp:comment_author_email> 208 208 <wp:comment_author_url><?php echo $c->comment_author_url; ?></wp:comment_author_url> -
trunk/wp-admin/import/wordpress.php
r5700 r5711 38 38 global $wpdb; 39 39 preg_match("|<$tag.*?>(.*?)</$tag>|is", $string, $return); 40 $return = $wpdb->escape( trim( $return[1] ) ); 40 $return = preg_replace('|<!\[CDATA\[(.*)\]\]>|', '$1', $return[1]); 41 $return = $wpdb->escape( trim( $return ) ); 41 42 return $return; 42 43 } … … 216 217 217 218 while ( $c = array_shift($this->categories) ) { 218 $cat_name = trim( str_replace(array ('<![CDATA[', ']]>'), '', $this->get_tag( $c, 'wp:cat_name' )));219 $cat_name = trim($this->get_tag( $c, 'wp:cat_name' )); 219 220 220 221 // If the category exists we leave it alone … … 275 276 276 277 $post_content = $this->get_tag( $post, 'content:encoded' ); 277 $post_content = str_replace(array ('<![CDATA[', ']]>'), '', $post_content);278 278 $post_content = preg_replace('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $post_content); 279 279 $post_content = str_replace('<br>', '<br />', $post_content);
Note: See TracChangeset
for help on using the changeset viewer.