From bce8c48d728eb0a9082444539c95952932e8c674 Mon Sep 17 00:00:00 2001 From: westi Date: Fri, 28 Dec 2007 21:47:54 +0000 Subject: [PATCH] Deprecate comments_rss and create_user. git-svn-id: http://svn.automattic.com/wordpress/trunk@6517 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/deprecated.php | 29 +++++++++++++++++++++++++++++ wp-includes/feed-rss2.php | 2 +- wp-includes/feed.php | 4 ---- wp-includes/registration.php | 14 +------------- 4 files changed, 31 insertions(+), 18 deletions(-) diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 6a9d3f4864..ce7add997c 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -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); +} + ?> \ No newline at end of file diff --git a/wp-includes/feed-rss2.php b/wp-includes/feed-rss2.php index 29da8a47f4..4213130623 100644 --- a/wp-includes/feed-rss2.php +++ b/wp-includes/feed-rss2.php @@ -48,7 +48,7 @@ $more = 1; ]]> - + diff --git a/wp-includes/feed.php b/wp-includes/feed.php index 6bf13cffe2..7816398886 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -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(); diff --git a/wp-includes/registration.php b/wp-includes/registration.php index 769f0a588e..041e8fc2c7 100644 --- a/wp-includes/registration.php +++ b/wp-includes/registration.php @@ -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); -} - ?>