<?php
/**
- * Deprecated functions from past WordPress versions
+ * Deprecated functions from past WordPress versions. You shouldn't use these
+ * globals and functions and look for the alternatives instead. The functions
+ * and globals will be removed in a later version.
+ *
* @package WordPress
* @subpackage Deprecated
*/
*/
/**
- * get_postdata() - Entire Post data
+ * Entire Post data.
*
* @since 0.71
* @deprecated Use get_post()
}
/**
- * start_wp() - Sets up the WordPress Loop
+ * Sets up the WordPress Loop.
*
* @since 1.0.1
* @deprecated Since 1.5 - {@link http://codex.wordpress.org/The_Loop Use new WordPress Loop}
}
/**
- * the_category_ID() - Return or Print Category ID
+ * Return or Print Category ID.
*
* @since 0.71
* @deprecated use get_the_category()
}
/**
- * the_category_head() - Print category with optional text before and after
+ * Print category with optional text before and after.
*
* @since 0.71
* @deprecated use get_the_category_by_ID()
}
/**
- * previous_post() - Prints link to the previous post
+ * Prints link to the previous post.
*
* @since 1.5
* @deprecated Use previous_post_link()
}
/**
- * next_post() - Prints link to the next post
+ * Prints link to the next post.
*
* @since 0.71
* @deprecated Use next_post_link()
}
/**
- * user_can_create_post() - Whether user can create a post
+ * Whether user can create a post.
*
* @since 1.5
* @deprecated Use current_user_can()
}
/**
- * user_can_create_draft() - Whether user can create a post
+ * Whether user can create a post.
*
* @since 1.5
* @deprecated Use current_user_can()
}
/**
- * user_can_edit_post() - Whether user can edit a post
+ * Whether user can edit a post.
*
* @since 1.5
* @deprecated Use current_user_can()
}
/**
- * user_can_delete_post() - Whether user can delete a post
+ * Whether user can delete a post.
*
* @since 1.5
* @deprecated Use current_user_can()
}
/**
- * user_can_set_post_date() - Whether user can set new posts' dates
+ * Whether user can set new posts' dates.
*
* @since 1.5
* @deprecated Use current_user_can()
return (($author_data->user_level > 4) && user_can_create_post($user_id, $blog_id, $category_id));
}
-/* returns true if $user_id can edit $post_id's date */
/**
- * user_can_edit_post_date() - Whether user can delete a post
+ * Whether user can delete a post.
*
* @since 1.5
* @deprecated Use current_user_can()
* @param int $user_id
* @param int $post_id
* @param int $blog_id Not Used
- * @return bool
+ * @return bool returns true if $user_id can edit $post_id's date
*/
function user_can_edit_post_date($user_id, $post_id, $blog_id = 1) {
_deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
return (($author_data->user_level > 4) && user_can_edit_post($user_id, $post_id, $blog_id));
}
-/* returns true if $user_id can edit $post_id's comments */
/**
- * user_can_edit_post_comments() - Whether user can delete a post
+ * Whether user can delete a post.
*
* @since 1.5
* @deprecated Use current_user_can()
* @param int $user_id
* @param int $post_id
* @param int $blog_id Not Used
- * @return bool
+ * @return bool returns true if $user_id can edit $post_id's comments
*/
function user_can_edit_post_comments($user_id, $post_id, $blog_id = 1) {
_deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
return user_can_edit_post($user_id, $post_id, $blog_id);
}
-/* returns true if $user_id can delete $post_id's comments */
/**
- * user_can_delete_post_comments() - Whether user can delete a post
+ * Whether user can delete a post.
*
* @since 1.5
* @deprecated Use current_user_can()
* @param int $user_id
* @param int $post_id
* @param int $blog_id Not Used
- * @return bool
+ * @return bool returns true if $user_id can delete $post_id's comments
*/
function user_can_delete_post_comments($user_id, $post_id, $blog_id = 1) {
_deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
}
/**
- * user_can_edit_user() - Can user can edit other user
+ * Can user can edit other user.
*
* @since 1.5
* @deprecated Use current_user_can()
}
/**
- * get_linksbyname() - Gets the links associated with category $cat_name.
+ * Gets the links associated with category $cat_name.
*
* @since 0.71
* @deprecated Use get_links()
* @see get_links()
*
- * @param string $cat_name Optional. The category name to use. If no match is found uses all.
- * @param string $before Optional. The html to output before the link.
- * @param string $after Optional. The html to output after the link.
- * @param string $between Optional. The html to output between the link/image and it's description. Not used if no image or $show_images is true.
- * @param bool $show_images Optional. Whether to show images (if defined).
- * @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url', 'description' or 'rating'. Or maybe owner.
+ * @param string $cat_name Optional. The category name to use. If no match is found uses all.
+ * @param string $before Optional. The html to output before the link.
+ * @param string $after Optional. The html to output after the link.
+ * @param string $between Optional. The html to output between the link/image and it's description. Not used if no image or $show_images is true.
+ * @param bool $show_images Optional. Whether to show images (if defined).
+ * @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url', 'description' or 'rating'. Or maybe owner.
* If you start the name with an underscore the order will be reversed. You can also specify 'rand' as the order which will return links in a
* random order.
- * @param bool $show_description Optional. Whether to show the description if show_images=false/not defined.
- * @param bool $show_rating Optional. Show rating stars/chars.
- * @param int $limit Optional. Limit to X entries. If not specified, all entries are shown.
- * @param int $show_updated Optional. Whether to show last updated timestamp
+ * @param bool $show_description Optional. Whether to show the description if show_images=false/not defined.
+ * @param bool $show_rating Optional. Show rating stars/chars.
+ * @param int $limit Optional. Limit to X entries. If not specified, all entries are shown.
+ * @param int $show_updated Optional. Whether to show last updated timestamp
*/
function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id',
$show_description = true, $show_rating = false,
}
/**
- * wp_get_linksbyname() - Gets the links associated with the named category.
+ * Gets the links associated with the named category.
*
* @since 1.0.1
* @deprecated Use wp_get_links()
}
/**
- * get_linkobjectsbyname() - Gets an array of link objects associated with category $cat_name.
+ * Gets an array of link objects associated with category $cat_name.
*
* <code>
* $links = get_linkobjectsbyname('fred');
}
/**
- * get_linkobjects() - Gets an array of link objects associated with category n.
+ * Gets an array of link objects associated with category n.
*
* Usage:
* <code>
}
/**
- * get_linksbyname_withrating() - Gets the links associated with category 'cat_name' and display rating stars/chars.
+ * Gets the links associated with category 'cat_name' and display rating stars/chars.
*
* @since 0.71
* @deprecated Use get_bookmarks()
}
/**
- * get_links_withrating() - Gets the links associated with category n and display rating stars/chars.
+ * Gets the links associated with category n and display rating stars/chars.
*
* @since 0.71
* @deprecated Use get_bookmarks()
}
/**
- * get_autotoggle() - Gets the auto_toggle setting
+ * Gets the auto_toggle setting.
*
* @since 0.71
* @deprecated No alternative function available
}
/**
- * wp_set_post_cats() - Sets the categories that the post id belongs to.
+ * Sets the categories that the post id belongs to.
*
* @since 1.0.1
* @deprecated Use wp_set_post_categories()
}
/**
- * get_author_link() - Returns or Prints link to the author's posts
+ * Returns or Prints link to the author's posts.
*
* @since 1.2
* @deprecated Use get_author_posts_url()
}
/**
- * link_pages() - Print list of pages based on arguments
+ * Print list of pages based on arguments.
*
* @since 0.71
* @deprecated Use wp_link_pages()
}
/**
- * get_settings() - Get value based on option
+ * Get value based on option.
*
* @since 0.71
* @deprecated Use get_option()
}
/**
- * permalink_link() - Print the permalink of the current post in the loop
+ * Print the permalink of the current post in the loop.
*
* @since 0.71
* @deprecated Use the_permalink()
}
/**
- * permalink_single_rss() - Print the permalink to the RSS feed
+ * Print the permalink to the RSS feed.
*
* @since 0.71
* @deprecated Use the_permalink_rss()
}
/**
- * wp_get_links() - Gets the links associated with category.
+ * Gets the links associated with category.
*
* @see get_links() for argument information that can be used in $args
* @since 1.0.1
}
/**
- * get_links() - Gets the links associated with category by id.
+ * Gets the links associated with category by id.
*
* @since 0.71
* @deprecated Use get_bookmarks()
}
/**
- * get_links_list() - Output entire list of links by category
+ * Output entire list of links by category.
*
- * Output a list of all links, listed by category, using the
- * settings in $wpdb->linkcategories and output it as a nested
- * HTML unordered list.
+ * Output a list of all links, listed by category, using the settings in
+ * $wpdb->linkcategories and output it as a nested HTML unordered list.
*
* @author Dougal
* @since 1.0.1
}
/**
- * links_popup_script() - Show the link to the links popup and the number of links
+ * Show the link to the links popup and the number of links.
*
* @author Fullo
* @link http://sprite.csr.unibo.it/fullo/
}
/**
- * get_linkcatname() - Gets the name of category by id.
+ * Gets the name of category by id.
*
* @since 0.71
* @deprecated Use get_category()
}
/**
- * comment_rss_link() - Print RSS comment feed link
+ * Print RSS comment feed link.
*
* @since 1.0.1
* @deprecated Use post_comments_feed_link()
}
/**
- * get_category_rss_link() - Print/Return link to category RSS2 feed
+ * Print/Return link to category RSS2 feed.
*
* @since 1.2
* @deprecated Use get_category_feed_link()
}
/**
- * get_author_rss_link() - Print/Return link to author RSS feed
+ * Print/Return link to author RSS feed.
*
* @since 1.2
* @deprecated Use get_author_feed_link()
}
/**
- * comments_rss() - Return link to the post RSS feed
+ * Return link to the post RSS feed.
*
* @since 1.5
* @deprecated Use get_post_comments_feed_link()
}
/**
- * create_user() - An alias of wp_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).
}
/**
- * documentation_link() - Unused Admin function
+ * Unused Admin function.
+ *
* @since 2.0
* @param string $deprecated Unknown
* @deprecated 2.5
}
/**
- * gzip_compression() - Unused function
+ * Unused function.
*
* @deprecated 2.5
*/
-
function gzip_compression() {
return false;
}
+
+/**
+ * Retrieve an array of comment data about comment $comment_ID.
+ *
+ * @deprecated Use get_comment()
+ * @see get_comment()
+ * @since 0.71
+ *
+ * @uses $id
+ * @uses $wpdb Database Object
+ *
+ * @param int $comment_ID The ID of the comment
+ * @param int $no_cache Whether to use the cache or not (casted to bool)
+ * @param bool $include_unapproved Whether to include unapproved comments or not
+ * @return array The comment data
+ */
+function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) {
+ _deprecated_function( __FUNCTION__, '2.7', 'get_comment()' );
+ return get_comment($comment_ID, ARRAY_A);
+}
+
?>
\ No newline at end of file