~canonical-sysadmins/wordpress/3.9.x

« back to all changes in this revision

Viewing changes to wp-admin/import/rss.php

  • Committer: Chris Jones
  • Date: 2010-01-19 13:17:33 UTC
  • Revision ID: cmsj@tenshu.net-20100119131733-rf31jv9k1v0xzo2h
[CJ] Import wordpress 2.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
                echo '</div>';
44
44
        }
45
45
 
 
46
        function _normalize_tag( $matches ) {
 
47
                return '<' . strtolower( $matches[1] );
 
48
        }
 
49
 
46
50
        function get_posts() {
47
51
                global $wpdb;
48
52
 
103
107
                        }
104
108
 
105
109
                        // Clean up content
106
 
                        $post_content = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $post_content);
 
110
                        $post_content = preg_replace_callback('|<(/?[A-Z]+)|', array( &$this, '_normalize_tag' ), $post_content);
107
111
                        $post_content = str_replace('<br>', '<br />', $post_content);
108
112
                        $post_content = str_replace('<hr>', '<hr />', $post_content);
109
113