WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/21/07 18:27:45 (10 years ago)
Author:
ryan
Message:

Deprecate permalink_single_rss(). Add the_permalink_rss() with accompanying filter. Props joostdevalk and Otto42. fixes #4654

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/export.php

    r5862 r5910  
    2626<option value="all" selected="selected"><?php _e('All'); ?></option> 
    2727<?php 
    28 $authors = $wpdb->get_col( "SELECT post_author FROM $wpdb->posts GROUP BY post_author" );   
     28$authors = $wpdb->get_col( "SELECT post_author FROM $wpdb->posts GROUP BY post_author" ); 
    2929foreach ( $authors as $id ) { 
    3030    $o = get_userdata( $id ); 
     
    132132 
    133133<!-- 
    134     This is a WordPress eXtended RSS file generated by WordPress as an export of  
    135     your blog. It contains information about your blog's posts, comments, and  
    136     categories. You may use this file to transfer that content from one site to  
     134    This is a WordPress eXtended RSS file generated by WordPress as an export of 
     135    your blog. It contains information about your blog's posts, comments, and 
     136    categories. You may use this file to transfer that content from one site to 
    137137    another. This file is not intended to serve as a complete backup of your 
    138138    blog. 
     
    144144    3.  Choose "WordPress" from the list of importers. 
    145145    4.  Upload this file using the form provided on that page. 
    146     5.  You will first be asked to map the authors in this export file to users  
    147         on the blog. For each author, you may choose to map an existing user on  
     146    5.  You will first be asked to map the authors in this export file to users 
     147        on the blog. For each author, you may choose to map an existing user on 
    148148        the blog or to create a new user. 
    149     6.  WordPress will then import each of the posts, comments, and categories  
     149    6.  WordPress will then import each of the posts, comments, and categories 
    150150        contained in this file onto your blog. 
    151151--> 
     
    175175            $where = "WHERE ID IN (".join(',', $next_posts).")"; 
    176176            $posts = $wpdb->get_results("SELECT * FROM $wpdb->posts $where ORDER BY post_date_gmt ASC"); 
    177                 foreach ($posts as $post) {  
     177                foreach ($posts as $post) { 
    178178            start_wp(); ?> 
    179179<item> 
    180180<title><?php the_title_rss() ?></title> 
    181 <link><?php permalink_single_rss() ?></link> 
     181<link><?php the_permalink_rss() ?></link> 
    182182<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate> 
    183183<dc:creator><?php the_author() ?></dc:creator> 
Note: See TracChangeset for help on using the changeset viewer.