Deprecate comments_rss and create_user.
git-svn-id: https://develop.svn.wordpress.org/trunk@6517 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
aa78f6c4c0
commit
a1b7802896
@ -1234,4 +1234,33 @@ function get_author_rss_link($echo = false, $author_id = 1, $deprecated = '') {
|
|||||||
return $link;
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@ -48,7 +48,7 @@ $more = 1;
|
|||||||
<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
|
<content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?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 rss_enclosure(); ?>
|
||||||
<?php do_action('rss2_item'); ?>
|
<?php do_action('rss2_item'); ?>
|
||||||
</item>
|
</item>
|
||||||
|
@ -97,10 +97,6 @@ function comment_text_rss() {
|
|||||||
echo $comment_text;
|
echo $comment_text;
|
||||||
}
|
}
|
||||||
|
|
||||||
function comments_rss($deprecated = '') {
|
|
||||||
return get_post_comments_feed_link();
|
|
||||||
}
|
|
||||||
|
|
||||||
function get_the_category_rss($type = 'rss') {
|
function get_the_category_rss($type = 'rss') {
|
||||||
$categories = get_the_category();
|
$categories = get_the_category();
|
||||||
$tags = get_the_tags();
|
$tags = get_the_tags();
|
||||||
|
@ -177,7 +177,7 @@ function wp_update_user($userdata) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A simpler way of inserting an user into the database.
|
* 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.
|
* @global object $wpdb WordPress database layer.
|
||||||
* @param string $username The user's username.
|
* @param string $username The user's username.
|
||||||
* @param string $password The user's password.
|
* @param string $password The user's password.
|
||||||
@ -195,16 +195,4 @@ function wp_create_user($username, $password, $email = '') {
|
|||||||
return wp_insert_user($userdata);
|
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user