Changeset 11964 for trunk/wp-admin/import/wordpress.php
- Timestamp:
- 09/23/2009 10:03:39 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/import/wordpress.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/wordpress.php
r11842 r11964 356 356 357 357 echo '<h3>'.sprintf(__('All done.').' <a href="%s">'.__('Have fun!').'</a>', get_option('home')).'</h3>'; 358 } 359 360 function _normalize_tag( $matches ) { 361 return '<' . strtolower( $match[1] ); 358 362 } 359 363 … … 384 388 385 389 $post_excerpt = $this->get_tag( $post, 'excerpt:encoded' ); 386 $post_excerpt = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $post_excerpt);390 $post_excerpt = preg_replace_callback('|<(/?[A-Z]+)|', array( &$this, '_normalize_tag' ), $post_excerpt); 387 391 $post_excerpt = str_replace('<br>', '<br />', $post_excerpt); 388 392 $post_excerpt = str_replace('<hr>', '<hr />', $post_excerpt); 389 393 390 394 $post_content = $this->get_tag( $post, 'content:encoded' ); 391 $post_content = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $post_content);395 $post_content = preg_replace_callback('|<(/?[A-Z]+)|', array( &$this, '_normalize_tag' ), $post_content); 392 396 $post_content = str_replace('<br>', '<br />', $post_content); 393 397 $post_content = str_replace('<hr>', '<hr />', $post_content);
Note: See TracChangeset
for help on using the changeset viewer.