-
+ B37F522ED5F64513EC5541C578D7B238B219118F616B98964236C1CD8267C5633000A27A2602E90DC68337D6C3B823901DCD8DBDACBC2A0417C166B9832E3654mp-wp/wp-includes/deprecated.php(0 . 0)(1 . 1307)
 87233 <?php
 87234 /**
 87235  * Deprecated functions from past WordPress versions. You shouldn't use these
 87236  * globals and functions and look for the alternatives instead. The functions
 87237  * and globals will be removed in a later version.
 87238  *
 87239  * @package WordPress
 87240  * @subpackage Deprecated
 87241  */
 87242 
 87243 /*
 87244  * Deprecated global variables.
 87245  */
 87246 
 87247 /**
 87248  * The name of the Posts table
 87249  * @global string $tableposts
 87250  * @deprecated Use $wpdb->posts
 87251  */
 87252 $tableposts = $wpdb->posts;
 87253 
 87254 /**
 87255  * The name of the Users table
 87256  * @global string $tableusers
 87257  * @deprecated Use $wpdb->users
 87258  */
 87259 $tableusers = $wpdb->users;
 87260 
 87261 /**
 87262  * The name of the Categories table
 87263  * @global string $tablecategories
 87264  * @deprecated Use $wpdb->categories
 87265  */
 87266 $tablecategories = $wpdb->categories;
 87267 
 87268 /**
 87269  * The name of the post to category table
 87270  * @global string $tablepost2cat
 87271  * @deprecated Use $wpdb->post2cat;
 87272  */
 87273 $tablepost2cat = $wpdb->post2cat;
 87274 
 87275 /**
 87276  * The name of the comments table
 87277  * @global string $tablecomments
 87278  * @deprecated Use $wpdb->comments;
 87279  */
 87280 $tablecomments = $wpdb->comments;
 87281 
 87282 /**
 87283  * The name of the links table
 87284  * @global string $tablelinks
 87285  * @deprecated Use $wpdb->links;
 87286  */
 87287 $tablelinks = $wpdb->links;
 87288 
 87289 /**
 87290  * @global string $tablelinkcategories
 87291  * @deprecated Not used anymore;
 87292  */
 87293 $tablelinkcategories = 'linkcategories_is_gone';
 87294 
 87295 /**
 87296  * The name of the options table
 87297  * @global string $tableoptions
 87298  * @deprecated Use $wpdb->options;
 87299  */
 87300 $tableoptions = $wpdb->options;
 87301 
 87302 /**
 87303  * The name of the postmeta table
 87304  * @global string $tablepostmeta
 87305  * @deprecated Use $wpdb->postmeta;
 87306  */
 87307 $tablepostmeta = $wpdb->postmeta;
 87308 
 87309 /*
 87310  * Deprecated functions come here to die.
 87311  */
 87312 
 87313 /**
 87314  * Entire Post data.
 87315  *
 87316  * @since 0.71
 87317  * @deprecated Use get_post()
 87318  * @see get_post()
 87319  *
 87320  * @param int $postid
 87321  * @return array
 87322  */
 87323 function get_postdata($postid) {
 87324 	_deprecated_function(__FUNCTION__, '0.0', 'get_post()');
 87325 
 87326 	$post = &get_post($postid);
 87327 
 87328 	$postdata = array (
 87329 		'ID' => $post->ID,
 87330 		'Author_ID' => $post->post_author,
 87331 		'Date' => $post->post_date,
 87332 		'Content' => $post->post_content,
 87333 		'Excerpt' => $post->post_excerpt,
 87334 		'Title' => $post->post_title,
 87335 		'Category' => $post->post_category,
 87336 		'post_status' => $post->post_status,
 87337 		'comment_status' => $post->comment_status,
 87338 		'ping_status' => $post->ping_status,
 87339 		'post_password' => $post->post_password,
 87340 		'to_ping' => $post->to_ping,
 87341 		'pinged' => $post->pinged,
 87342 		'post_type' => $post->post_type,
 87343 		'post_name' => $post->post_name
 87344 	);
 87345 
 87346 	return $postdata;
 87347 }
 87348 
 87349 /**
 87350  * Sets up the WordPress Loop.
 87351  *
 87352  * @since 1.0.1
 87353  * @deprecated Since 1.5 - {@link http://codex.wordpress.org/The_Loop Use new WordPress Loop}
 87354  */
 87355 function start_wp() {
 87356 	global $wp_query, $post;
 87357 
 87358 	_deprecated_function(__FUNCTION__, '1.5', __('new WordPress Loop') );
 87359 
 87360 	// Since the old style loop is being used, advance the query iterator here.
 87361 	$wp_query->next_post();
 87362 
 87363 	setup_postdata($post);
 87364 }
 87365 
 87366 /**
 87367  * Return or Print Category ID.
 87368  *
 87369  * @since 0.71
 87370  * @deprecated use get_the_category()
 87371  * @see get_the_category()
 87372  *
 87373  * @param bool $echo
 87374  * @return null|int
 87375  */
 87376 function the_category_ID($echo = true) {
 87377 	_deprecated_function(__FUNCTION__, '0.0', 'get_the_category()');
 87378 
 87379 	// Grab the first cat in the list.
 87380 	$categories = get_the_category();
 87381 	$cat = $categories[0]->term_id;
 87382 
 87383 	if ( $echo )
 87384 		echo $cat;
 87385 
 87386 	return $cat;
 87387 }
 87388 
 87389 /**
 87390  * Print category with optional text before and after.
 87391  *
 87392  * @since 0.71
 87393  * @deprecated use get_the_category_by_ID()
 87394  * @see get_the_category_by_ID()
 87395  *
 87396  * @param string $before
 87397  * @param string $after
 87398  */
 87399 function the_category_head($before='', $after='') {
 87400 	global $currentcat, $previouscat;
 87401 
 87402 	_deprecated_function(__FUNCTION__, '0.0', 'get_the_category_by_ID()');
 87403 
 87404 	// Grab the first cat in the list.
 87405 	$categories = get_the_category();
 87406 	$currentcat = $categories[0]->category_id;
 87407 	if ( $currentcat != $previouscat ) {
 87408 		echo $before;
 87409 		echo get_the_category_by_ID($currentcat);
 87410 		echo $after;
 87411 		$previouscat = $currentcat;
 87412 	}
 87413 }
 87414 
 87415 /**
 87416  * Prints link to the previous post.
 87417  *
 87418  * @since 1.5
 87419  * @deprecated Use previous_post_link()
 87420  * @see previous_post_link()
 87421  *
 87422  * @param string $format
 87423  * @param string $previous
 87424  * @param string $title
 87425  * @param string $in_same_cat
 87426  * @param int $limitprev
 87427  * @param string $excluded_categories
 87428  */
 87429 function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') {
 87430 
 87431 	_deprecated_function(__FUNCTION__, '0.0', 'previous_post_link()');
 87432 
 87433 	if ( empty($in_same_cat) || 'no' == $in_same_cat )
 87434 		$in_same_cat = false;
 87435 	else
 87436 		$in_same_cat = true;
 87437 
 87438 	$post = get_previous_post($in_same_cat, $excluded_categories);
 87439 
 87440 	if ( !$post )
 87441 		return;
 87442 
 87443 	$string = '<a href="'.get_permalink($post->ID).'">'.$previous;
 87444 	if ( 'yes' == $title )
 87445 		$string .= apply_filters('the_title', $post->post_title, $post);
 87446 	$string .= '</a>';
 87447 	$format = str_replace('%', $string, $format);
 87448 	echo $format;
 87449 }
 87450 
 87451 /**
 87452  * Prints link to the next post.
 87453  *
 87454  * @since 0.71
 87455  * @deprecated Use next_post_link()
 87456  * @see next_post_link()
 87457  *
 87458  * @param string $format
 87459  * @param string $previous
 87460  * @param string $title
 87461  * @param string $in_same_cat
 87462  * @param int $limitprev
 87463  * @param string $excluded_categories
 87464  */
 87465 function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') {
 87466 	_deprecated_function(__FUNCTION__, '0.0', 'next_post_link()');
 87467 
 87468 	if ( empty($in_same_cat) || 'no' == $in_same_cat )
 87469 		$in_same_cat = false;
 87470 	else
 87471 		$in_same_cat = true;
 87472 
 87473 	$post = get_next_post($in_same_cat, $excluded_categories);
 87474 
 87475 	if ( !$post	)
 87476 		return;
 87477 
 87478 	$string = '<a href="'.get_permalink($post->ID).'">'.$next;
 87479 	if ( 'yes' == $title )
 87480 		$string .= apply_filters('the_title', $post->post_title, $nextpost);
 87481 	$string .= '</a>';
 87482 	$format = str_replace('%', $string, $format);
 87483 	echo $format;
 87484 }
 87485 
 87486 /**
 87487  * Whether user can create a post.
 87488  *
 87489  * @since 1.5
 87490  * @deprecated Use current_user_can()
 87491  * @see current_user_can()
 87492  *
 87493  * @param int $user_id
 87494  * @param int $blog_id Not Used
 87495  * @param int $category_id Not Used
 87496  * @return bool
 87497  */
 87498 function user_can_create_post($user_id, $blog_id = 1, $category_id = 'None') {
 87499 	_deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
 87500 
 87501 	$author_data = get_userdata($user_id);
 87502 	return ($author_data->user_level > 1);
 87503 }
 87504 
 87505 /**
 87506  * Whether user can create a post.
 87507  *
 87508  * @since 1.5
 87509  * @deprecated Use current_user_can()
 87510  * @see current_user_can()
 87511  *
 87512  * @param int $user_id
 87513  * @param int $blog_id Not Used
 87514  * @param int $category_id Not Used
 87515  * @return bool
 87516  */
 87517 function user_can_create_draft($user_id, $blog_id = 1, $category_id = 'None') {
 87518 	_deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
 87519 
 87520 	$author_data = get_userdata($user_id);
 87521 	return ($author_data->user_level >= 1);
 87522 }
 87523 
 87524 /**
 87525  * Whether user can edit a post.
 87526  *
 87527  * @since 1.5
 87528  * @deprecated Use current_user_can()
 87529  * @see current_user_can()
 87530  *
 87531  * @param int $user_id
 87532  * @param int $post_id
 87533  * @param int $blog_id Not Used
 87534  * @return bool
 87535  */
 87536 function user_can_edit_post($user_id, $post_id, $blog_id = 1) {
 87537 	_deprecated_function(__FUNCTION__, '0', 'current_user_can()');
 87538 
 87539 	$author_data = get_userdata($user_id);
 87540 	$post = get_post($post_id);
 87541 	$post_author_data = get_userdata($post->post_author);
 87542 
 87543 	if ( (($user_id == $post_author_data->ID) && !($post->post_status == 'publish' &&  $author_data->user_level < 2))
 87544 			 || ($author_data->user_level > $post_author_data->user_level)
 87545 			 || ($author_data->user_level >= 10) ) {
 87546 		return true;
 87547 	} else {
 87548 		return false;
 87549 	}
 87550 }
 87551 
 87552 /**
 87553  * Whether user can delete a post.
 87554  *
 87555  * @since 1.5
 87556  * @deprecated Use current_user_can()
 87557  * @see current_user_can()
 87558  *
 87559  * @param int $user_id
 87560  * @param int $post_id
 87561  * @param int $blog_id Not Used
 87562  * @return bool
 87563  */
 87564 function user_can_delete_post($user_id, $post_id, $blog_id = 1) {
 87565 	_deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
 87566 
 87567 	// right now if one can edit, one can delete
 87568 	return user_can_edit_post($user_id, $post_id, $blog_id);
 87569 }
 87570 
 87571 /**
 87572  * Whether user can set new posts' dates.
 87573  *
 87574  * @since 1.5
 87575  * @deprecated Use current_user_can()
 87576  * @see current_user_can()
 87577  *
 87578  * @param int $user_id
 87579  * @param int $blog_id Not Used
 87580  * @param int $category_id Not Used
 87581  * @return bool
 87582  */
 87583 function user_can_set_post_date($user_id, $blog_id = 1, $category_id = 'None') {
 87584 	_deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
 87585 
 87586 	$author_data = get_userdata($user_id);
 87587 	return (($author_data->user_level > 4) && user_can_create_post($user_id, $blog_id, $category_id));
 87588 }
 87589 
 87590 /**
 87591  * Whether user can delete a post.
 87592  *
 87593  * @since 1.5
 87594  * @deprecated Use current_user_can()
 87595  * @see current_user_can()
 87596  *
 87597  * @param int $user_id
 87598  * @param int $post_id
 87599  * @param int $blog_id Not Used
 87600  * @return bool returns true if $user_id can edit $post_id's date
 87601  */
 87602 function user_can_edit_post_date($user_id, $post_id, $blog_id = 1) {
 87603 	_deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
 87604 
 87605 	$author_data = get_userdata($user_id);
 87606 	return (($author_data->user_level > 4) && user_can_edit_post($user_id, $post_id, $blog_id));
 87607 }
 87608 
 87609 /**
 87610  * Whether user can delete a post.
 87611  *
 87612  * @since 1.5
 87613  * @deprecated Use current_user_can()
 87614  * @see current_user_can()
 87615  *
 87616  * @param int $user_id
 87617  * @param int $post_id
 87618  * @param int $blog_id Not Used
 87619  * @return bool returns true if $user_id can edit $post_id's comments
 87620  */
 87621 function user_can_edit_post_comments($user_id, $post_id, $blog_id = 1) {
 87622 	_deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
 87623 
 87624 	// right now if one can edit a post, one can edit comments made on it
 87625 	return user_can_edit_post($user_id, $post_id, $blog_id);
 87626 }
 87627 
 87628 /**
 87629  * Whether user can delete a post.
 87630  *
 87631  * @since 1.5
 87632  * @deprecated Use current_user_can()
 87633  * @see current_user_can()
 87634  *
 87635  * @param int $user_id
 87636  * @param int $post_id
 87637  * @param int $blog_id Not Used
 87638  * @return bool returns true if $user_id can delete $post_id's comments
 87639  */
 87640 function user_can_delete_post_comments($user_id, $post_id, $blog_id = 1) {
 87641 	_deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
 87642 
 87643 	// right now if one can edit comments, one can delete comments
 87644 	return user_can_edit_post_comments($user_id, $post_id, $blog_id);
 87645 }
 87646 
 87647 /**
 87648  * Can user can edit other user.
 87649  *
 87650  * @since 1.5
 87651  * @deprecated Use current_user_can()
 87652  * @see current_user_can()
 87653  *
 87654  * @param int $user_id
 87655  * @param int $other_user
 87656  * @return bool
 87657  */
 87658 function user_can_edit_user($user_id, $other_user) {
 87659 	_deprecated_function(__FUNCTION__, '0.0', 'current_user_can()');
 87660 
 87661 	$user  = get_userdata($user_id);
 87662 	$other = get_userdata($other_user);
 87663 	if ( $user->user_level > $other->user_level || $user->user_level > 8 || $user->ID == $other->ID )
 87664 		return true;
 87665 	else
 87666 		return false;
 87667 }
 87668 
 87669 /**
 87670  * Gets the links associated with category $cat_name.
 87671  *
 87672  * @since 0.71
 87673  * @deprecated Use get_links()
 87674  * @see get_links()
 87675  *
 87676  * @param string $cat_name Optional. The category name to use. If no match is found uses all.
 87677  * @param string $before Optional. The html to output before the link.
 87678  * @param string $after Optional. The html to output after the link.
 87679  * @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.
 87680  * @param bool $show_images Optional. Whether to show images (if defined).
 87681  * @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url', 'description' or 'rating'. Or maybe owner.
 87682  *		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
 87683  *		random order.
 87684  * @param bool $show_description Optional. Whether to show the description if show_images=false/not defined.
 87685  * @param bool $show_rating Optional. Show rating stars/chars.
 87686  * @param int $limit		Optional. Limit to X entries. If not specified, all entries are shown.
 87687  * @param int $show_updated Optional. Whether to show last updated timestamp
 87688  */
 87689 function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id',
 87690 						 $show_description = true, $show_rating = false,
 87691 						 $limit = -1, $show_updated = 0) {
 87692 	_deprecated_function(__FUNCTION__, '0.0', 'get_links()');
 87693 
 87694 	$cat_id = -1;
 87695 	$cat = get_term_by('name', $cat_name, 'link_category');
 87696 	if ( $cat )
 87697 		$cat_id = $cat->term_id;
 87698 
 87699 	get_links($cat_id, $before, $after, $between, $show_images, $orderby, $show_description, $show_rating, $limit, $show_updated);
 87700 }
 87701 
 87702 /**
 87703  * Gets the links associated with the named category.
 87704  *
 87705  * @since 1.0.1
 87706  * @deprecated Use wp_get_links()
 87707  * @see wp_get_links()
 87708  *
 87709  * @param string $category The category to use.
 87710  * @param string $args
 87711  * @return bool|null
 87712  */
 87713 function wp_get_linksbyname($category, $args = '') {
 87714 	_deprecated_function(__FUNCTION__, '0.0', 'wp_get_links()');
 87715 
 87716 	$cat = get_term_by('name', $category, 'link_category');
 87717 	if ( !$cat )
 87718 		return false;
 87719 	$cat_id = $cat->term_id;
 87720 
 87721 	$args = add_query_arg('category', $cat_id, $args);
 87722 	wp_get_links($args);
 87723 }
 87724 
 87725 /**
 87726  * Gets an array of link objects associated with category $cat_name.
 87727  *
 87728  * <code>
 87729  *	$links = get_linkobjectsbyname('fred');
 87730  *	foreach ($links as $link) {
 87731  * 		echo '<li>'.$link->link_name.'</li>';
 87732  *	}
 87733  * </code>
 87734  *
 87735  * @since 1.0.1
 87736  * @deprecated Use get_linkobjects()
 87737  * @see get_linkobjects()
 87738  *
 87739  * @param string $cat_name The category name to use. If no match is found uses all.
 87740  * @param string $orderby The order to output the links. E.g. 'id', 'name', 'url', 'description', or 'rating'.
 87741  *		Or maybe owner. If you start the name with an underscore the order will be reversed. You can also
 87742  *		specify 'rand' as the order which will return links in a random order.
 87743  * @param int $limit Limit to X entries. If not specified, all entries are shown.
 87744  * @return unknown
 87745  */
 87746 function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit = -1) {
 87747 	_deprecated_function(__FUNCTION__, '0.0', 'get_linkobjects()');
 87748 
 87749 	$cat_id = -1;
 87750 	$cat = get_term_by('name', $cat_name, 'link_category');
 87751 	if ( $cat )
 87752 		$cat_id = $cat->term_id;
 87753 
 87754 	return get_linkobjects($cat_id, $orderby, $limit);
 87755 }
 87756 
 87757 /**
 87758  * Gets an array of link objects associated with category n.
 87759  *
 87760  * Usage:
 87761  * <code>
 87762  *	$links = get_linkobjects(1);
 87763  *	if ($links) {
 87764  *		foreach ($links as $link) {
 87765  *			echo '<li>'.$link->link_name.'<br />'.$link->link_description.'</li>';
 87766  *		}
 87767  *	}
 87768  * </code>
 87769  *
 87770  * Fields are:
 87771  * <ol>
 87772  *	<li>link_id</li>
 87773  *	<li>link_url</li>
 87774  *	<li>link_name</li>
 87775  *	<li>link_image</li>
 87776  *	<li>link_target</li>
 87777  *	<li>link_category</li>
 87778  *	<li>link_description</li>
 87779  *	<li>link_visible</li>
 87780  *	<li>link_owner</li>
 87781  *	<li>link_rating</li>
 87782  *	<li>link_updated</li>
 87783  *	<li>link_rel</li>
 87784  *	<li>link_notes</li>
 87785  * </ol>
 87786  *
 87787  * @since 1.0.1
 87788  * @deprecated Use get_bookmarks()
 87789  * @see get_bookmarks()
 87790  *
 87791  * @param int $category The category to use. If no category supplied uses all
 87792  * @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
 87793  *		'description', or 'rating'. Or maybe owner. If you start the name with an
 87794  *		underscore the order will be reversed. You can also specify 'rand' as the
 87795  *		order which will return links in a random order.
 87796  * @param int $limit Limit to X entries. If not specified, all entries are shown.
 87797  * @return unknown
 87798  */
 87799 function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {
 87800 	_deprecated_function(__FUNCTION__, '0.0', 'get_bookmarks()');
 87801 
 87802 	$links = get_bookmarks("category=$category&orderby=$orderby&limit=$limit");
 87803 
 87804 	$links_array = array();
 87805 	foreach ($links as $link)
 87806 		$links_array[] = $link;
 87807 
 87808 	return $links_array;
 87809 }
 87810 
 87811 /**
 87812  * Gets the links associated with category 'cat_name' and display rating stars/chars.
 87813  *
 87814  * @since 0.71
 87815  * @deprecated Use get_bookmarks()
 87816  * @see get_bookmarks()
 87817  *
 87818  * @param string $cat_name The category name to use. If no match is found uses all
 87819  * @param string $before The html to output before the link
 87820  * @param string $after The html to output after the link
 87821  * @param string $between The html to output between the link/image and it's description. Not used if no image or show_images is true
 87822  * @param bool $show_images Whether to show images (if defined).
 87823  * @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
 87824  *		'description', or 'rating'. Or maybe owner. If you start the name with an
 87825  *		underscore the order will be reversed. You can also specify 'rand' as the
 87826  *		order which will return links in a random order.
 87827  * @param bool $show_description Whether to show the description if show_images=false/not defined
 87828  * @param int $limit Limit to X entries. If not specified, all entries are shown.
 87829  * @param int $show_updated Whether to show last updated timestamp
 87830  */
 87831 function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '<br />', $between = " ",
 87832 									$show_images = true, $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
 87833 	_deprecated_function(__FUNCTION__, '0.0', 'get_bookmarks()');
 87834 
 87835 	get_linksbyname($cat_name, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
 87836 }
 87837 
 87838 /**
 87839  * Gets the links associated with category n and display rating stars/chars.
 87840  *
 87841  * @since 0.71
 87842  * @deprecated Use get_bookmarks()
 87843  * @see get_bookmarks()
 87844  *
 87845  * @param int $category The category to use. If no category supplied uses all
 87846  * @param string $before The html to output before the link
 87847  * @param string $after The html to output after the link
 87848  * @param string $between The html to output between the link/image and it's description. Not used if no image or show_images == true
 87849  * @param bool $show_images Whether to show images (if defined).
 87850  * @param string $orderby The order to output the links. E.g. 'id', 'name', 'url',
 87851  *		'description', or 'rating'. Or maybe owner. If you start the name with an
 87852  *		underscore the order will be reversed. You can also specify 'rand' as the
 87853  *		order which will return links in a random order.
 87854  * @param bool $show_description Whether to show the description if show_images=false/not defined.
 87855  * @param string $limit Limit to X entries. If not specified, all entries are shown.
 87856  * @param int $show_updated Whether to show last updated timestamp
 87857  */
 87858 function get_links_withrating($category = -1, $before = '', $after = '<br />', $between = " ", $show_images = true,
 87859 							  $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
 87860 	_deprecated_function(__FUNCTION__, '0.0', 'get_bookmarks()');
 87861 
 87862 	get_links($category, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
 87863 }
 87864 
 87865 /**
 87866  * Gets the auto_toggle setting.
 87867  *
 87868  * @since 0.71
 87869  * @deprecated No alternative function available
 87870  *
 87871  * @param int $id The category to get. If no category supplied uses 0
 87872  * @return int Only returns 0.
 87873  */
 87874 function get_autotoggle($id = 0) {
 87875 	_deprecated_function(__FUNCTION__, '0.0' );
 87876 	return 0;
 87877 }
 87878 
 87879 /**
 87880  * @since 0.71
 87881  * @deprecated Use wp_list_categories()
 87882  * @see wp_list_categories()
 87883  *
 87884  * @param int $optionall
 87885  * @param string $all
 87886  * @param string $sort_column
 87887  * @param string $sort_order
 87888  * @param string $file
 87889  * @param bool $list
 87890  * @param int $optiondates
 87891  * @param int $optioncount
 87892  * @param int $hide_empty
 87893  * @param int $use_desc_for_title
 87894  * @param bool $children
 87895  * @param int $child_of
 87896  * @param int $categories
 87897  * @param int $recurse
 87898  * @param string $feed
 87899  * @param string $feed_image
 87900  * @param string $exclude
 87901  * @param bool $hierarchical
 87902  * @return unknown
 87903  */
 87904 function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
 87905 				   $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
 87906 				   $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) {
 87907 	_deprecated_function(__FUNCTION__, '0.0', 'wp_list_categories()');
 87908 
 87909 	$query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children',
 87910 		'child_of', 'categories', 'recurse', 'feed', 'feed_image', 'exclude', 'hierarchical');
 87911 	return wp_list_cats($query);
 87912 }
 87913 
 87914 /**
 87915  * @since 1.2
 87916  * @deprecated Use wp_list_categories()
 87917  * @see wp_list_categories()
 87918  *
 87919  * @param string|array $args
 87920  * @return unknown
 87921  */
 87922 function wp_list_cats($args = '') {
 87923 	_deprecated_function(__FUNCTION__, '0.0', 'wp_list_categories()');
 87924 
 87925 	$r = wp_parse_args( $args );
 87926 
 87927 	// Map to new names.
 87928 	if ( isset($r['optionall']) && isset($r['all']))
 87929 		$r['show_option_all'] = $r['all'];
 87930 	if ( isset($r['sort_column']) )
 87931 		$r['orderby'] = $r['sort_column'];
 87932 	if ( isset($r['sort_order']) )
 87933 		$r['order'] = $r['sort_order'];
 87934 	if ( isset($r['optiondates']) )
 87935 		$r['show_last_update'] = $r['optiondates'];
 87936 	if ( isset($r['optioncount']) )
 87937 		$r['show_count'] = $r['optioncount'];
 87938 	if ( isset($r['list']) )
 87939 		$r['style'] = $r['list'] ? 'list' : 'break';
 87940 	$r['title_li'] = '';
 87941 
 87942 	return wp_list_categories($r);
 87943 }
 87944 
 87945 /**
 87946  * @since 0.71
 87947  * @deprecated Use wp_dropdown_categories()
 87948  * @see wp_dropdown_categories()
 87949  *
 87950  * @param int $optionall
 87951  * @param string $all
 87952  * @param string $orderby
 87953  * @param string $order
 87954  * @param int $show_last_update
 87955  * @param int $show_count
 87956  * @param int $hide_empty
 87957  * @param bool $optionnone
 87958  * @param int $selected
 87959  * @param int $exclude
 87960  * @return unknown
 87961  */
 87962 function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc',
 87963 		$show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false,
 87964 		$selected = 0, $exclude = 0) {
 87965 	_deprecated_function(__FUNCTION__, '0.0', 'wp_dropdown_categories()');
 87966 
 87967 	$show_option_all = '';
 87968 	if ( $optionall )
 87969 		$show_option_all = $all;
 87970 
 87971 	$show_option_none = '';
 87972 	if ( $optionnone )
 87973 		$show_option_none = __('None');
 87974 
 87975 	$vars = compact('show_option_all', 'show_option_none', 'orderby', 'order',
 87976 					'show_last_update', 'show_count', 'hide_empty', 'selected', 'exclude');
 87977 	$query = add_query_arg($vars, '');
 87978 	return wp_dropdown_categories($query);
 87979 }
 87980 
 87981 /**
 87982  * @since 2.1
 87983  * @deprecated Use wp_print_scripts() or WP_Scripts.
 87984  * @see wp_print_scripts()
 87985  * @see WP_Scripts
 87986  */
 87987 function tinymce_include() {
 87988 	_deprecated_function(__FUNCTION__, '0.0', 'wp_print_scripts()/WP_Scripts');
 87989 
 87990 	wp_print_script('wp_tiny_mce');
 87991 }
 87992 
 87993 /**
 87994  * @since 1.2
 87995  * @deprecated Use wp_list_authors()
 87996  * @see wp_list_authors()
 87997  *
 87998  * @param bool $optioncount
 87999  * @param bool $exclude_admin
 88000  * @param bool $show_fullname
 88001  * @param bool $hide_empty
 88002  * @param string $feed
 88003  * @param string $feed_image
 88004  * @return unknown
 88005  */
 88006 function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') {
 88007 	_deprecated_function(__FUNCTION__, '0.0', 'wp_list_authors()');
 88008 
 88009 	$args = compact('optioncount', 'exclude_admin', 'show_fullname', 'hide_empty', 'feed', 'feed_image');
 88010 	return wp_list_authors($args);
 88011 }
 88012 
 88013 /**
 88014  * @since 1.0.1
 88015  * @deprecated Use wp_get_post_categories()
 88016  * @see wp_get_post_categories()
 88017  *
 88018  * @param int $blogid Not Used
 88019  * @param int $post_ID
 88020  * @return unknown
 88021  */
 88022 function wp_get_post_cats($blogid = '1', $post_ID = 0) {
 88023 	_deprecated_function(__FUNCTION__, '0.0', 'wp_get_post_categories()');
 88024 	return wp_get_post_categories($post_ID);
 88025 }
 88026 
 88027 /**
 88028  * Sets the categories that the post id belongs to.
 88029  *
 88030  * @since 1.0.1
 88031  * @deprecated Use wp_set_post_categories()
 88032  * @see wp_set_post_categories()
 88033  *
 88034  * @param int $blogid Not used
 88035  * @param int $post_ID
 88036  * @param array $post_categories
 88037  * @return unknown
 88038  */
 88039 function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) {
 88040 	_deprecated_function(__FUNCTION__, '0.0', 'wp_set_post_categories()');
 88041 	return wp_set_post_categories($post_ID, $post_categories);
 88042 }
 88043 
 88044 /**
 88045  * @since 0.71
 88046  * @deprecated Use wp_get_archives()
 88047  * @see wp_get_archives()
 88048  *
 88049  * @param string $type
 88050  * @param string $limit
 88051  * @param string $format
 88052  * @param string $before
 88053  * @param string $after
 88054  * @param bool $show_post_count
 88055  * @return unknown
 88056  */
 88057 function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) {
 88058 	_deprecated_function(__FUNCTION__, '0.0', 'wp_get_archives()');
 88059 	$args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
 88060 	return wp_get_archives($args);
 88061 }
 88062 
 88063 /**
 88064  * Returns or Prints link to the author's posts.
 88065  *
 88066  * @since 1.2
 88067  * @deprecated Use get_author_posts_url()
 88068  * @see get_author_posts_url()
 88069  *
 88070  * @param bool $echo Optional.
 88071  * @param int $author_id Required.
 88072  * @param string $author_nicename Optional.
 88073  * @return string|null
 88074  */
 88075 function get_author_link($echo = false, $author_id, $author_nicename = '') {
 88076 	_deprecated_function(__FUNCTION__, '0.0', 'get_author_posts_url()');
 88077 
 88078 	$link = get_author_posts_url($author_id, $author_nicename);
 88079 
 88080 	if ( $echo )
 88081 		echo $link;
 88082 	return $link;
 88083 }
 88084 
 88085 /**
 88086  * Print list of pages based on arguments.
 88087  *
 88088  * @since 0.71
 88089  * @deprecated Use wp_link_pages()
 88090  * @see wp_link_pages()
 88091  *
 88092  * @param string $before
 88093  * @param string $after
 88094  * @param string $next_or_number
 88095  * @param string $nextpagelink
 88096  * @param string $previouspagelink
 88097  * @param string $pagelink
 88098  * @param string $more_file
 88099  * @return string
 88100  */
 88101 function link_pages($before='<br />', $after='<br />', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page',
 88102 					$pagelink='%', $more_file='') {
 88103 	_deprecated_function(__FUNCTION__, '0.0', 'wp_link_pages()');
 88104 
 88105 	$args = compact('before', 'after', 'next_or_number', 'nextpagelink', 'previouspagelink', 'pagelink', 'more_file');
 88106 	return wp_link_pages($args);
 88107 }
 88108 
 88109 /**
 88110  * Get value based on option.
 88111  *
 88112  * @since 0.71
 88113  * @deprecated Use get_option()
 88114  * @see get_option()
 88115  *
 88116  * @param string $option
 88117  * @return string
 88118  */
 88119 function get_settings($option) {
 88120 	_deprecated_function(__FUNCTION__, '0.0', 'get_option()');
 88121 
 88122 	return get_option($option);
 88123 }
 88124 
 88125 /**
 88126  * Print the permalink of the current post in the loop.
 88127  *
 88128  * @since 0.71
 88129  * @deprecated Use the_permalink()
 88130  * @see the_permalink()
 88131  */
 88132 function permalink_link() {
 88133 	_deprecated_function(__FUNCTION__, '0.0', 'the_permalink()');
 88134 	the_permalink();
 88135 }
 88136 
 88137 /**
 88138  * Print the permalink to the RSS feed.
 88139  *
 88140  * @since 0.71
 88141  * @deprecated Use the_permalink_rss()
 88142  * @see the_permalink_rss()
 88143  *
 88144  * @param string $file
 88145  */
 88146 function permalink_single_rss($deprecated = '') {
 88147 	_deprecated_function(__FUNCTION__, '0.0', 'the_permalink_rss()');
 88148 	the_permalink_rss();
 88149 }
 88150 
 88151 /**
 88152  * Gets the links associated with category.
 88153  *
 88154  * @see get_links() for argument information that can be used in $args
 88155  * @since 1.0.1
 88156  * @deprecated Use get_bookmarks()
 88157  * @see get_bookmarks()
 88158  *
 88159  * @param string $args a query string
 88160  * @return null|string
 88161  */
 88162 function wp_get_links($args = '') {
 88163 	_deprecated_function(__FUNCTION__, '0.0', 'get_bookmarks()');
 88164 
 88165 	if ( strpos( $args, '=' ) === false ) {
 88166 		$cat_id = $args;
 88167 		$args = add_query_arg( 'category', $cat_id, $args );
 88168 	}
 88169 
 88170 	$defaults = array(
 88171 		'category' => -1, 'before' => '',
 88172 		'after' => '<br />', 'between' => ' ',
 88173 		'show_images' => true, 'orderby' => 'name',
 88174 		'show_description' => true, 'show_rating' => false,
 88175 		'limit' => -1, 'show_updated' => true,
 88176 		'echo' => true
 88177 	);
 88178 
 88179 	$r = wp_parse_args( $args, $defaults );
 88180 	extract( $r, EXTR_SKIP );
 88181 
 88182 	return get_links($category, $before, $after, $between, $show_images, $orderby, $show_description, $show_rating, $limit, $show_updated, $echo);
 88183 }
 88184 
 88185 /**
 88186  * Gets the links associated with category by id.
 88187  *
 88188  * @since 0.71
 88189  * @deprecated Use get_bookmarks()
 88190  * @see get_bookmarks()
 88191  *
 88192  * @param int $category The category to use. If no category supplied uses all
 88193  * @param string $before the html to output before the link
 88194  * @param string $after the html to output after the link
 88195  * @param string $between the html to output between the link/image and its description.
 88196  *		Not used if no image or show_images == true
 88197  * @param bool $show_images whether to show images (if defined).
 88198  * @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
 88199  *		'description', or 'rating'. Or maybe owner. If you start the name with an
 88200  *		underscore the order will be reversed. You can also specify 'rand' as the order
 88201  *		which will return links in a random order.
 88202  * @param bool $show_description whether to show the description if show_images=false/not defined.
 88203  * @param bool $show_rating show rating stars/chars
 88204  * @param int $limit Limit to X entries. If not specified, all entries are shown.
 88205  * @param int $show_updated whether to show last updated timestamp
 88206  * @param bool $echo whether to echo the results, or return them instead
 88207  * @return null|string
 88208  */
 88209 function get_links($category = -1, $before = '', $after = '<br />', $between = ' ', $show_images = true, $orderby = 'name',
 88210 			$show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $echo = true) {
 88211 	_deprecated_function(__FUNCTION__, '0.0', 'get_bookmarks()');
 88212 
 88213 	$order = 'ASC';
 88214 	if ( substr($orderby, 0, 1) == '_' ) {
 88215 		$order = 'DESC';
 88216 		$orderby = substr($orderby, 1);
 88217 	}
 88218 
 88219 	if ( $category == -1 ) //get_bookmarks uses '' to signify all categories
 88220 		$category = '';
 88221 
 88222 	$results = get_bookmarks("category=$category&orderby=$orderby&order=$order&show_updated=$show_updated&limit=$limit");
 88223 
 88224 	if ( !$results )
 88225 		return;
 88226 
 88227 	$output = '';
 88228 
 88229 	foreach ( (array) $results as $row ) {
 88230 		if ( !isset($row->recently_updated) )
 88231 			$row->recently_updated = false;
 88232 		$output .= $before;
 88233 		if ( $show_updated && $row->recently_updated )
 88234 			$output .= get_option('links_recently_updated_prepend');
 88235 		$the_link = '#';
 88236 		if ( !empty($row->link_url) )
 88237 			$the_link = clean_url($row->link_url);
 88238 		$rel = $row->link_rel;
 88239 		if ( '' != $rel )
 88240 			$rel = ' rel="' . $rel . '"';
 88241 
 88242 		$desc = attribute_escape(sanitize_bookmark_field('link_description', $row->link_description, $row->link_id, 'display'));
 88243 		$name = attribute_escape(sanitize_bookmark_field('link_name', $row->link_name, $row->link_id, 'display'));
 88244 		$title = $desc;
 88245 
 88246 		if ( $show_updated )
 88247 			if (substr($row->link_updated_f, 0, 2) != '00')
 88248 				$title .= ' ('.__('Last updated') . ' ' . date(get_option('links_updated_date_format'), $row->link_updated_f + (get_option('gmt_offset') * 3600)) . ')';
 88249 
 88250 		if ( '' != $title )
 88251 			$title = ' title="' . $title . '"';
 88252 
 88253 		$alt = ' alt="' . $name . '"';
 88254 
 88255 		$target = $row->link_target;
 88256 		if ( '' != $target )
 88257 			$target = ' target="' . $target . '"';
 88258 
 88259 		$output .= '<a href="' . $the_link . '"' . $rel . $title . $target. '>';
 88260 
 88261 		if ( $row->link_image != null && $show_images ) {
 88262 			if ( strpos($row->link_image, 'http') !== false )
 88263 				$output .= "<img src=\"$row->link_image\" $alt $title />";
 88264 			else // If it's a relative path
 88265 				$output .= "<img src=\"" . get_option('siteurl') . "$row->link_image\" $alt $title />";
 88266 		} else {
 88267 			$output .= $name;
 88268 		}
 88269 
 88270 		$output .= '</a>';
 88271 
 88272 		if ( $show_updated && $row->recently_updated )
 88273 			$output .= get_option('links_recently_updated_append');
 88274 
 88275 		if ( $show_description && '' != $desc )
 88276 			$output .= $between . $desc;
 88277 
 88278 		if ($show_rating) {
 88279 			$output .= $between . get_linkrating($row);
 88280 		}
 88281 
 88282 		$output .= "$after\n";
 88283 	} // end while
 88284 
 88285 	if ( !$echo )
 88286 		return $output;
 88287 	echo $output;
 88288 }
 88289 
 88290 /**
 88291  * Output entire list of links by category.
 88292  *
 88293  * Output a list of all links, listed by category, using the settings in
 88294  * $wpdb->linkcategories and output it as a nested HTML unordered list.
 88295  *
 88296  * @author Dougal
 88297  * @since 1.0.1
 88298  * @deprecated Use wp_list_bookmarks()
 88299  * @see wp_list_bookmarks()
 88300  *
 88301  * @param string $order Sort link categories by 'name' or 'id'
 88302  * @param string $$deprecated Not Used
 88303  */
 88304 function get_links_list($order = 'name', $deprecated = '') {
 88305 	_deprecated_function(__FUNCTION__, '0.0', 'wp_list_bookmarks()');
 88306 
 88307 	$order = strtolower($order);
 88308 
 88309 	// Handle link category sorting
 88310 	$direction = 'ASC';
 88311 	if ( '_' == substr($order,0,1) ) {
 88312 		$direction = 'DESC';
 88313 		$order = substr($order,1);
 88314 	}
 88315 
 88316 	if ( !isset($direction) )
 88317 		$direction = '';
 88318 
 88319 	$cats = get_categories("type=link&orderby=$order&order=$direction&hierarchical=0");
 88320 
 88321 	// Display each category
 88322 	if ( $cats ) {
 88323 		foreach ( (array) $cats as $cat ) {
 88324 			// Handle each category.
 88325 
 88326 			// Display the category name
 88327 			echo '  <li id="linkcat-' . $cat->term_id . '" class="linkcat"><h2>' . apply_filters('link_category', $cat->name ) . "</h2>\n\t<ul>\n";
 88328 			// Call get_links() with all the appropriate params
 88329 			get_links($cat->term_id, '<li>', "</li>", "\n", true, 'name', false);
 88330 
 88331 			// Close the last category
 88332 			echo "\n\t</ul>\n</li>\n";
 88333 		}
 88334 	}
 88335 }
 88336 
 88337 /**
 88338  * Show the link to the links popup and the number of links.
 88339  *
 88340  * @author Fullo
 88341  * @link http://sprite.csr.unibo.it/fullo/
 88342  *
 88343  * @since 0.71
 88344  * @deprecated {@internal Use function instead is unknown}}
 88345  *
 88346  * @param string $text the text of the link
 88347  * @param int $width the width of the popup window
 88348  * @param int $height the height of the popup window
 88349  * @param string $file the page to open in the popup window
 88350  * @param bool $count the number of links in the db
 88351  */
 88352 function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) {
 88353 	_deprecated_function(__FUNCTION__, '0.0' );
 88354 
 88355 	if ( $count )
 88356 		$counts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->links");
 88357 
 88358 	$javascript = "<a href=\"#\" onclick=\"javascript:window.open('$file?popup=1', '_blank', 'width=$width,height=$height,scrollbars=yes,status=no'); return false\">";
 88359 	$javascript .= $text;
 88360 
 88361 	if ( $count )
 88362 		$javascript .= " ($counts)";
 88363 
 88364 	$javascript .= "</a>\n\n";
 88365 		echo $javascript;
 88366 }
 88367 
 88368 /**
 88369  * @since 1.0.1
 88370  * @deprecated Use sanitize_bookmark_field()
 88371  * @see sanitize_bookmark_field()
 88372  *
 88373  * @param object $link
 88374  * @return unknown
 88375  */
 88376 function get_linkrating($link) {
 88377 	_deprecated_function(__FUNCTION__, '0.0', 'sanitize_bookmark_field()');
 88378 	return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display');
 88379 }
 88380 
 88381 /**
 88382  * Gets the name of category by id.
 88383  *
 88384  * @since 0.71
 88385  * @deprecated Use get_category()
 88386  * @see get_category()
 88387  *
 88388  * @param int $id The category to get. If no category supplied uses 0
 88389  * @return string
 88390  */
 88391 function get_linkcatname($id = 0) {
 88392 	_deprecated_function(__FUNCTION__, '0.0', 'get_category()');
 88393 
 88394 	$id = (int) $id;
 88395 
 88396 	if ( empty($id) )
 88397 		return '';
 88398 
 88399 	$cats = wp_get_link_cats($id);
 88400 
 88401 	if ( empty($cats) || ! is_array($cats) )
 88402 		return '';
 88403 
 88404 	$cat_id = (int) $cats[0]; // Take the first cat.
 88405 
 88406 	$cat = get_category($cat_id);
 88407 	return $cat->name;
 88408 }
 88409 
 88410 /**
 88411  * Print RSS comment feed link.
 88412  *
 88413  * @since 1.0.1
 88414  * @deprecated Use post_comments_feed_link()
 88415  * @see post_comments_feed_link()
 88416  *
 88417  * @param string $link_text
 88418  * @param string $deprecated Not used
 88419  */
 88420 function comments_rss_link($link_text = 'Comments RSS', $deprecated = '') {
 88421 	_deprecated_function(__FUNCTION__, '0.0', 'post_comments_feed_link()');
 88422 	post_comments_feed_link($link_text);
 88423 }
 88424 
 88425 /**
 88426  * Print/Return link to category RSS2 feed.
 88427  *
 88428  * @since 1.2
 88429  * @deprecated Use get_category_feed_link()
 88430  * @see get_category_feed_link()
 88431  *
 88432  * @param bool $echo
 88433  * @param int $cat_ID
 88434  * @param string $deprecated Not used
 88435  * @return string|null
 88436  */
 88437 function get_category_rss_link($echo = false, $cat_ID = 1, $deprecated = '') {
 88438 	_deprecated_function(__FUNCTION__, '0.0', 'get_category_feed_link()');
 88439 
 88440 	$link = get_category_feed_link($cat_ID, 'rss2');
 88441 
 88442 	if ( $echo )
 88443 		echo $link;
 88444 	return $link;
 88445 }
 88446 
 88447 /**
 88448  * Print/Return link to author RSS feed.
 88449  *
 88450  * @since 1.2
 88451  * @deprecated Use get_author_feed_link()
 88452  * @see get_author_feed_link()
 88453  *
 88454  * @param bool $echo
 88455  * @param int $author_id
 88456  * @param string $deprecated Not used
 88457  * @return string|null
 88458  */
 88459 function get_author_rss_link($echo = false, $author_id = 1, $deprecated = '') {
 88460 	_deprecated_function(__FUNCTION__, '0.0', 'get_author_feed_link()');
 88461 
 88462 	$link = get_author_feed_link($author_id);
 88463 	if ( $echo )
 88464 		echo $link;
 88465 	return $link;
 88466 }
 88467 
 88468 /**
 88469  * Return link to the post RSS feed.
 88470  *
 88471  * @since 1.5
 88472  * @deprecated Use get_post_comments_feed_link()
 88473  * @see get_post_comments_feed_link()
 88474  *
 88475  * @param string $deprecated Not used
 88476  * @return string
 88477  */
 88478 function comments_rss($deprecated = '') {
 88479 	_deprecated_function(__FUNCTION__, '2.2', 'get_post_comments_feed_link()');
 88480 	return get_post_comments_feed_link();
 88481 }
 88482 
 88483 /**
 88484  * An alias of wp_create_user().
 88485  *
 88486  * @param string $username The user's username.
 88487  * @param string $password The user's password.
 88488  * @param string $email The user's email (optional).
 88489  * @return int The new user's ID.
 88490  * @deprecated Use wp_create_user()
 88491  * @see wp_create_user()
 88492  */
 88493 function create_user($username, $password, $email) {
 88494 	_deprecated_function( __FUNCTION__, '2.0', 'wp_create_user()' );
 88495 	return wp_create_user($username, $password, $email);
 88496 }
 88497 
 88498 /**
 88499  * Unused Admin function.
 88500  *
 88501  * @since 2.0
 88502  * @param string $deprecated Unknown
 88503  * @deprecated 2.5
 88504  */
 88505 function documentation_link( $deprecated = '' ) {
 88506 	_deprecated_function( __FUNCTION__, '2.5', '' );
 88507 	return;
 88508 }
 88509 
 88510 /**
 88511  * Unused function.
 88512  *
 88513  * @deprecated 2.5
 88514 */
 88515 function gzip_compression() {
 88516 	return false;
 88517 }
 88518 
 88519 /**
 88520  * Retrieve an array of comment data about comment $comment_ID.
 88521  *
 88522  * @deprecated Use get_comment()
 88523  * @see get_comment()
 88524  * @since 0.71
 88525  *
 88526  * @uses $id
 88527  * @uses $wpdb Database Object
 88528  *
 88529  * @param int $comment_ID The ID of the comment
 88530  * @param int $no_cache Whether to use the cache or not (casted to bool)
 88531  * @param bool $include_unapproved Whether to include unapproved comments or not
 88532  * @return array The comment data
 88533  */
 88534 function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) {
 88535 	_deprecated_function( __FUNCTION__, '2.7', 'get_comment()' );
 88536 	return get_comment($comment_ID, ARRAY_A);
 88537 }
 88538 
 88539 ?>