Changeset 10688
- Timestamp:
- 03/03/2009 06:37:25 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 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 -
trunk/wp-admin/includes/dashboard.php
r10680 r10688 748 748 $title = wp_specialchars( $title ); 749 749 750 $description = wp_specialchars( strip_tags(html_entity_decode($item->get_description(), ENT_QUOTES )) );750 $description = wp_specialchars( strip_tags(html_entity_decode($item->get_description(), ENT_QUOTES, get_option('blog_charset'))) ); 751 751 752 752 list($link, $frag) = explode( '#', $item->get_link() ); -
trunk/wp-includes/feed.php
r10687 r10688 341 341 $the_list .= sprintf( '<category scheme="%1$s" term="%2$s" />', attribute_escape( apply_filters( 'get_bloginfo_rss', get_bloginfo( 'url' ) ) ), attribute_escape( $cat_name ) ); 342 342 else 343 $the_list .= "\n\t\t<category><![CDATA[" . html_entity_decode( $cat_name ) . "]]></category>\n";343 $the_list .= "\n\t\t<category><![CDATA[" . html_entity_decode( $cat_name, ENT_COMPAT, get_option('blog_charset') ) . "]]></category>\n"; 344 344 } 345 345 -
trunk/wp-includes/widgets.php
r10670 r10688 1506 1506 while ( strstr($link, 'http') != $link ) 1507 1507 $link = substr($link, 1); 1508 $desc = attribute_escape(strip_tags(html_entity_decode($rss->get_description(), ENT_QUOTES )));1508 $desc = attribute_escape(strip_tags(html_entity_decode($rss->get_description(), ENT_QUOTES, get_option('blog_charset')))); 1509 1509 $title = $options[$number]['title']; 1510 1510 if ( empty($title) ) … … 1576 1576 $title = __('Untitled'); 1577 1577 1578 $desc = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item->get_description(), ENT_QUOTES ))));1578 $desc = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item->get_description(), ENT_QUOTES, get_option('blog_charset'))))); 1579 1579 $desc = wp_html_excerpt( $desc, 360 ) . ' […]'; 1580 1580 $desc = wp_specialchars( $desc );
Note: See TracChangeset
for help on using the changeset viewer.