Changeset 12985 for trunk/wp-admin/import/wordpress.php
- Timestamp:
- 02/06/2010 07:19:25 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/import/wordpress.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/wordpress.php
r12657 r12985 42 42 function footer() { 43 43 echo '</div>'; 44 }45 46 function unhtmlentities($string) { // From php.net for < 4.3 compat47 $trans_tbl = get_html_translation_table(HTML_ENTITIES);48 $trans_tbl = array_flip($trans_tbl);49 return strtr($string, $trans_tbl);50 44 } 51 45 … … 451 445 $tag_index = 0; 452 446 foreach ($tags as $tag) { 453 $tags[$tag_index] = $wpdb->escape( $this->unhtmlentities(str_replace(array ('<![CDATA[', ']]>'), '', $tag)));447 $tags[$tag_index] = $wpdb->escape( html_entity_decode( str_replace(array( '<![CDATA[', ']]>' ), '', $tag ) ) ); 454 448 $tag_index++; 455 449 } … … 460 454 $cat_index = 0; 461 455 foreach ($categories as $category) { 462 $categories[$cat_index] = $wpdb->escape( $this->unhtmlentities(str_replace(array ('<![CDATA[', ']]>'), '', $category)));456 $categories[$cat_index] = $wpdb->escape( html_entity_decode( str_replace( array( '<![CDATA[', ']]>' ), '', $category ) ) ); 463 457 $cat_index++; 464 458 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)