Deprecate comments_rss and create_user.

git-svn-id: http://svn.automattic.com/wordpress/trunk@6517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2007-12-28 21:47:54 +00:00
parent c04f475479
commit bce8c48d72
4 changed files with 31 additions and 18 deletions

View File

@ -1234,4 +1234,33 @@ function get_author_rss_link($echo = false, $author_id = 1, $deprecated = '') {
return $link;
}
/**
* comments_rss() - Return link to the post RSS feed
*
* @since 1.5
* @deprecated Use get_post_comments_feed_link()
* @see get_post_comments_feed_link()
*
* @param string $deprecated Not used
* @return string
*/
function comments_rss($deprecated = '') {
_deprecated_function(__FUNCTION__, '2.2', 'get_post_comments_feed_link()');
return get_post_comments_feed_link();
}
/**
* create_user() - An alias of wp_create_user().
* @param string $username The user's username.
* @param string $password The user's password.
* @param string $email The user's email (optional).
* @return int The new user's ID.
* @deprecated Use wp_create_user()
* @see wp_create_user()
*/
function create_user($username, $password, $email) {
_deprecated_function( __FUNCTION__, '2.0', 'wp_create_user()' );
return wp_create_user($username, $password, $email);
}
?>

View File

@ -48,7 +48,7 @@ $more = 1;
<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
<?php endif; ?>
<?php endif; ?>
<wfw:commentRss><?php echo comments_rss(); ?></wfw:commentRss>
<wfw:commentRss><?php echo get_post_comments_feed_link(); ?></wfw:commentRss>
<?php rss_enclosure(); ?>
<?php do_action('rss2_item'); ?>
</item>

View File

@ -97,10 +97,6 @@ function comment_text_rss() {
echo $comment_text;
}
function comments_rss($deprecated = '') {
return get_post_comments_feed_link();
}
function get_the_category_rss($type = 'rss') {
$categories = get_the_category();
$tags = get_the_tags();

View File

@ -177,7 +177,7 @@ function wp_update_user($userdata) {
/**
* A simpler way of inserting an user into the database.
* See also: wp_insert_user().
* @see wp_insert_user().
* @global object $wpdb WordPress database layer.
* @param string $username The user's username.
* @param string $password The user's password.
@ -195,16 +195,4 @@ function wp_create_user($username, $password, $email = '') {
return wp_insert_user($userdata);
}
/**
* An alias of wp_create_user().
* @param string $username The user's username.
* @param string $password The user's password.
* @param string $email The user's email (optional).
* @return int The new user's ID.
* @deprecated
*/
function create_user($username, $password, $email) {
return wp_create_user($username, $password, $email);
}
?>