WordPress.org

Make WordPress Core

Changeset 6517


Ignore:
Timestamp:
12/28/07 21:47:54 (8 years ago)
Author:
westi
Message:

Deprecate comments_rss and create_user.

Location:
trunk/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r6514 r6517  
    12351235} 
    12361236 
     1237/** 
     1238 * comments_rss() - Return link to the post RSS feed  
     1239 * 
     1240 * @since 1.5 
     1241 * @deprecated Use get_post_comments_feed_link() 
     1242 * @see get_post_comments_feed_link() 
     1243 * 
     1244 * @param string $deprecated Not used 
     1245 * @return string 
     1246 */ 
     1247function comments_rss($deprecated = '') { 
     1248    _deprecated_function(__FUNCTION__, '2.2', 'get_post_comments_feed_link()'); 
     1249    return get_post_comments_feed_link(); 
     1250} 
     1251 
     1252/** 
     1253 * create_user() - An alias of wp_create_user(). 
     1254 * @param string $username The user's username. 
     1255 * @param string $password The user's password. 
     1256 * @param string $email The user's email (optional). 
     1257 * @return int The new user's ID. 
     1258 * @deprecated Use wp_create_user() 
     1259 * @see wp_create_user() 
     1260 */ 
     1261function create_user($username, $password, $email) { 
     1262    _deprecated_function( __FUNCTION__, '2.0', 'wp_create_user()' ); 
     1263    return wp_create_user($username, $password, $email); 
     1264} 
     1265 
    12371266?> 
  • trunk/wp-includes/feed-rss2.php

    r6493 r6517  
    4949    <?php endif; ?> 
    5050<?php endif; ?> 
    51         <wfw:commentRss><?php echo comments_rss(); ?></wfw:commentRss> 
     51        <wfw:commentRss><?php echo get_post_comments_feed_link(); ?></wfw:commentRss> 
    5252<?php rss_enclosure(); ?> 
    5353    <?php do_action('rss2_item'); ?> 
  • trunk/wp-includes/feed.php

    r6516 r6517  
    9898} 
    9999 
    100 function comments_rss($deprecated = '') { 
    101     return get_post_comments_feed_link(); 
    102 } 
    103  
    104100function get_the_category_rss($type = 'rss') { 
    105101    $categories = get_the_category(); 
  • trunk/wp-includes/registration.php

    r6387 r6517  
    178178/** 
    179179 * A simpler way of inserting an user into the database. 
    180  * See also: wp_insert_user(). 
     180 * @see wp_insert_user(). 
    181181 * @global object $wpdb WordPress database layer. 
    182182 * @param string $username The user's username. 
     
    196196} 
    197197 
    198 /** 
    199  * An alias of wp_create_user(). 
    200  * @param string $username The user's username. 
    201  * @param string $password The user's password. 
    202  * @param string $email The user's email (optional). 
    203  * @return int The new user's ID. 
    204  * @deprecated 
    205  */ 
    206 function create_user($username, $password, $email) { 
    207     return wp_create_user($username, $password, $email); 
    208 } 
    209  
    210198?> 
Note: See TracChangeset for help on using the changeset viewer.