Changeset 10688 for trunk/wp-admin/import/blogger.php
- Timestamp:
- 03/03/2009 06:37:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/blogger.php
r10339 r10688 438 438 foreach ( $matches[1] as $match ) 439 439 if ( preg_match('/rel=.previous./', $match) ) 440 $query = html_entity_decode( preg_replace('/^.*href=[\'"].*\?(.+)[\'"].*$/', '$1', $match) );440 $query = html_entity_decode( preg_replace('/^.*href=[\'"].*\?(.+)[\'"].*$/', '$1', $match), ENT_COMPAT, get_option('blog_charset') ); 441 441 442 442 if ( $query ) { … … 496 496 foreach ( $matches[1] as $match ) 497 497 if ( preg_match('/rel=.previous./', $match) ) 498 $query = html_entity_decode( preg_replace('/^.*href=[\'"].*\?(.+)[\'"].*$/', '$1', $match) );498 $query = html_entity_decode( preg_replace('/^.*href=[\'"].*\?(.+)[\'"].*$/', '$1', $match), ENT_COMPAT, get_option('blog_charset') ); 499 499 500 500 parse_str($query, $q); … … 546 546 547 547 $post_date = $this->convert_date( $entry->published ); 548 $post_content = trim( addslashes( $this->no_apos( html_entity_decode( $entry->content ) ) ) );548 $post_content = trim( addslashes( $this->no_apos( html_entity_decode( $entry->content, ENT_COMPAT, get_option('blog_charset') ) ) ) ); 549 549 $post_title = trim( addslashes( $this->no_apos( $this->min_whitespace( $entry->title ) ) ) ); 550 550 $post_status = isset( $entry->draft ) ? 'draft' : 'publish'; … … 601 601 $comment_author_url = addslashes( $this->no_apos( strip_tags( (string) $matches[2] ) ) ); 602 602 $comment_date = $this->convert_date( $entry->updated ); 603 $comment_content = addslashes( $this->no_apos( html_entity_decode( $entry->content ) ) );603 $comment_content = addslashes( $this->no_apos( html_entity_decode( $entry->content, ENT_COMPAT, get_option('blog_charset') ) ) ); 604 604 605 605 // Clean up content
Note: See TracChangeset
for help on using the changeset viewer.