Index: wp-includes/deprecated.php
===================================================================
--- wp-includes/deprecated.php	(revision 6429)
+++ wp-includes/deprecated.php	(working copy)
@@ -7,6 +7,9 @@
 
 /*
  * Deprecated global variables.
+ *
+ * When adding a method to this list, please add an error log like so:
+ *   user_error('depricated_function() is DEPRECATED. Please use better_function() instead.', E_USER_NOTICE);
  */
 
 /**
@@ -86,6 +89,7 @@
  * @return array
  */
 function get_postdata($postid) {
+ 	user_error('get_postdata() is DEPRECATED; use get_post() instead.', E_USER_NOTICE);
 	$post = &get_post($postid);
 
 	$postdata = array (
@@ -116,6 +120,7 @@
  * @deprecated Since 1.5 - {@link http://codex.wordpress.org/The_Loop Use new WordPress Loop}
  */
 function start_wp() {
+	user_error('start_wp() is DEPRECATED; please use the new post loop instead.', E_USER_NOTICE);
 	global $wp_query, $post;
 
 	// Since the old style loop is being used, advance the query iterator here.
@@ -135,6 +140,7 @@
  * @return null|int
  */
 function the_category_ID($echo = true) {
+	user_error('the_category_ID() is DEPRECATED.', E_USER_NOTICE);
 	// Grab the first cat in the list.
 	$categories = get_the_category();
 	$cat = $categories[0]->term_id;
@@ -156,6 +162,7 @@
  * @param string $after
  */
 function the_category_head($before='', $after='') {
+	user_error('the_category_head() s DEPRECATED.', E_USER_NOTICE);
 	global $currentcat, $previouscat;
 	// Grab the first cat in the list.
 	$categories = get_the_category();
@@ -183,6 +190,7 @@
  * @param string $excluded_categories
  */
 function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') {
+	user_error('previous_post() is DEPRECATED; please use previous_post() instead.', E_USER_NOTICE);
 
 	if ( empty($in_same_cat) || 'no' == $in_same_cat )
 		$in_same_cat = false;
@@ -217,6 +225,7 @@
  * @param string $excluded_categories
  */
 function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') {
+	user_error('next_post() is DEPRECATED; please use next_post_link() instead.', E_USER_NOTICE);
 
 	if ( empty($in_same_cat) || 'no' == $in_same_cat )
 		$in_same_cat = false;
@@ -249,6 +258,7 @@
  * @return bool
  */
 function user_can_create_post($user_id, $blog_id = 1, $category_id = 'None') {
+ 	user_error('user_can_create_post() is DEPRECATED; use current_user_can() instead.', E_USER_NOTICE);
 	$author_data = get_userdata($user_id);
 	return ($author_data->user_level > 1);
 }
@@ -266,6 +276,7 @@
  * @return bool
  */
 function user_can_create_draft($user_id, $blog_id = 1, $category_id = 'None') {
+ 	user_error('user_can_create_draft() is DEPRECATED; use current_user_can() instead.', E_USER_NOTICE);
 	$author_data = get_userdata($user_id);
 	return ($author_data->user_level >= 1);
 }
@@ -283,6 +294,7 @@
  * @return bool
  */
 function user_can_edit_post($user_id, $post_id, $blog_id = 1) {
+ 	user_error('user_can_edit_post() is DEPRECATED; use current_user_can() instead.', E_USER_NOTICE);
 	$author_data = get_userdata($user_id);
 	$post = get_post($post_id);
 	$post_author_data = get_userdata($post->post_author);
@@ -309,6 +321,7 @@
  * @return bool
  */
 function user_can_delete_post($user_id, $post_id, $blog_id = 1) {
+ 	user_error('user_can_delete_post() is DEPRECATED; use current_user_can() instead.', E_USER_NOTICE);
 	// right now if one can edit, one can delete
 	return user_can_edit_post($user_id, $post_id, $blog_id);
 }
@@ -326,6 +339,7 @@
  * @return bool
  */
 function user_can_set_post_date($user_id, $blog_id = 1, $category_id = 'None') {
+ 	user_error('user_can_set_post_date() is DEPRECATED; use current_user_can() instead.', E_USER_NOTICE);
 	$author_data = get_userdata($user_id);
 	return (($author_data->user_level > 4) && user_can_create_post($user_id, $blog_id, $category_id));
 }
@@ -344,6 +358,7 @@
  * @return bool
  */
 function user_can_edit_post_date($user_id, $post_id, $blog_id = 1) {
+ 	user_error('user_can_edit_post_date() is DEPRECATED; current_user_can() instead.', E_USER_NOTICE);
 	$author_data = get_userdata($user_id);
 	return (($author_data->user_level > 4) && user_can_edit_post($user_id, $post_id, $blog_id));
 }
@@ -362,6 +377,8 @@
  * @return bool
  */
 function user_can_edit_post_comments($user_id, $post_id, $blog_id = 1) {
+ 	user_error('user_can_edit_post_comments() is DEPRECATED; current_user_can() instead.', E_USER_NOTICE);
+	$author_data = get_userdata($user_id);
 	// right now if one can edit a post, one can edit comments made on it
 	return user_can_edit_post($user_id, $post_id, $blog_id);
 }
@@ -380,6 +397,8 @@
  * @return bool
  */
 function user_can_delete_post_comments($user_id, $post_id, $blog_id = 1) {
+ 	user_error('user_can_delete_post_comments() is DEPRECATED; current_user_can() instead.', E_USER_NOTICE);
+	$author_data = get_userdata($user_id);
 	// right now if one can edit comments, one can delete comments
 	return user_can_edit_post_comments($user_id, $post_id, $blog_id);
 }
@@ -396,6 +415,8 @@
  * @return bool
  */
 function user_can_edit_user($user_id, $other_user) {
+ 	user_error('user_can_edit_user() is DEPRECATED; current_user_can() instead.', E_USER_NOTICE);
+	$author_data = get_userdata($user_id);
 	$user  = get_userdata($user_id);
 	$other = get_userdata($other_user);
 	if ( $user->user_level > $other->user_level || $user->user_level > 8 || $user->ID == $other->ID )
@@ -427,6 +448,8 @@
 function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id',
 						 $show_description = true, $show_rating = false,
 						 $limit = -1, $show_updated = 0) {
+ 	user_error('get_linksbyname() is DEPRECATED; use get_links() instead.', E_USER_NOTICE);
+	$author_data = get_userdata($user_id);
 	$cat_id = -1;
 	$cat = get_term_by('name', $cat_name, 'link_category');
 	if ( $cat )
@@ -447,6 +470,8 @@
  * @return bool|null
  */
 function wp_get_linksbyname($category, $args = '') {
+ 	user_error('wp_get_linksbyname() is DEPRECATED; use wp_get_links() instead.', E_USER_NOTICE);
+	$author_data = get_userdata($user_id);
 	$cat = get_term_by('name', $category, 'link_category');
 	if ( !$cat )
 		return false;
@@ -478,6 +503,8 @@
  * @return unknown
  */
 function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit = -1) {
+ 	user_error('get_linkobjectsbyname() is DEPRECATED; use get_linkobjects() instead.', E_USER_NOTICE);
+	$author_data = get_userdata($user_id);
 	$cat_id = -1;
 	$cat = get_term_by('name', $cat_name, 'link_category');
 	if ( $cat )
@@ -529,6 +556,8 @@
  * @return unknown
  */
 function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {
+ 	user_error('get_linkobjectss() is DEPRECATED; use get_bookmarks() instead.', E_USER_NOTICE);
+	$author_data = get_userdata($user_id);
 	$links = get_bookmarks("category=$category&orderby=$orderby&limit=$limit");
 
 	$links_array = array();
@@ -560,6 +589,7 @@
  */
 function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '<br />', $between = " ",
 									$show_images = true, $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
+ 	user_error('get_linksbyname_withrating() is DEPRECATED; use get_bookmarks() instead.', E_USER_NOTICE);
 
 	get_linksbyname($cat_name, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
 }
@@ -586,6 +616,7 @@
  */
 function get_links_withrating($category = -1, $before = '', $after = '<br />', $between = " ", $show_images = true,
 							  $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
+ 	user_error('get_links_withrating() is DEPRECATED; use get_bookmarks() instead.', E_USER_NOTICE);
 
 	get_links($category, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
 }
@@ -600,6 +631,7 @@
  * @return int Only returns 0.
  */
 function get_autotoggle($id = 0) {
+ 	user_error('get_autotoggle() is DEPRECATED.', E_USER_NOTICE);
 	return 0;
 }
 
@@ -631,6 +663,7 @@
 function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0, 
 				   $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0, 
 				   $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) {
+ 	user_error('list_cats() is DEPRECATED; use wp_list_categories() instead.', E_USER_NOTICE);
 	$query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children',
 		'child_of', 'categories', 'recurse', 'feed', 'feed_image', 'exclude', 'hierarchical');
 	return wp_list_cats($query);
@@ -645,6 +678,7 @@
  * @return unknown
  */
 function wp_list_cats($args = '') {
+ 	user_error('wp_list_cats() is DEPRECATED; use wp_list_categories() instead.', E_USER_NOTICE);
 	$r = wp_parse_args( $args );
 
 	// Map to new names.
@@ -683,8 +717,10 @@
  * @return unknown
  */
 function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc',
+ 	user_error('dropdown_cats() is DEPRECATED; use wp_dropdown_categories() instead.', E_USER_NOTICE);
 		$show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false,
 		$selected = 0, $exclude = 0) {
+	user_error('dropdown_cats() is DEPRECATED.', E_USER_NOTICE);
 
 	$show_option_all = '';
 	if ( $optionall )
@@ -707,6 +743,7 @@
  * @see WP_Scripts
  */
 function tinymce_include() {
+ 	user_error('tinymce_include() is DEPRECATED; see wp_print_script().', E_USER_NOTICE);
 	wp_print_script('wp_tiny_mce');
 }
 
@@ -724,6 +761,7 @@
  * @return unknown
  */
 function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') {
+ 	user_error('list_authors() is DEPRECATED; use wp_list_authors() instead.', E_USER_NOTICE);
 	$args = compact('optioncount', 'exclude_admin', 'show_fullname', 'hide_empty', 'feed', 'feed_image');
 	return wp_list_authors($args);
 }
@@ -738,6 +776,7 @@
  * @return unknown
  */
 function wp_get_post_cats($blogid = '1', $post_ID = 0) {
+ 	user_error('wp_get_post_cats() is DEPRECATED; use wp_get_post_categories() instead.', E_USER_NOTICE);
 	return wp_get_post_categories($post_ID);
 }
 
@@ -754,6 +793,7 @@
  * @return unknown
  */
 function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) {
+ 	user_error('wp_set_post_cats() is DEPRECATED; use wp_set_post_categories() instead.', E_USER_NOTICE);
 	return wp_set_post_categories($post_ID, $post_categories);
 }
 
@@ -771,6 +811,7 @@
  * @return unknown
  */
 function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) {
+ 	user_error('get_archives() is DEPRECATED; use wp_get_archives() instead.', E_USER_NOTICE);
 	$args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
 	return wp_get_archives($args);
 }
@@ -788,6 +829,7 @@
  * @return string|null
  */
 function get_author_link($echo = false, $author_id, $author_nicename = '') {
+ 	user_error('get_author_link() is DEPRECATED; use get_author_posts_url() instead.', E_USER_NOTICE);
 	$link = get_author_posts_url($author_id, $author_nicename);
 
 	if ( $echo )
@@ -813,6 +855,7 @@
  */
 function link_pages($before='<br />', $after='<br />', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page', 
 					$pagelink='%', $more_file='') {
+ 	user_error('link_pages() is DEPRECATED; use wp_link_pages() instead.', E_USER_NOTICE);
 	$args = compact('before', 'after', 'next_or_number', 'nextpagelink', 'previouspagelink', 'pagelink', 'more_file');
 	return wp_link_pages($args);
 }
@@ -828,6 +871,7 @@
  * @return string
  */
 function get_settings($option) {
+ 	user_error('get_settings() is DEPRECATED; use get_option() instead.', E_USER_NOTICE);
 	return get_option($option);
 }
 
@@ -839,6 +883,7 @@
  * @see the_permalink()
  */
 function permalink_link() {
+ 	user_error('permalink_link() is DEPRECATED; use the_prermalink() instead.', E_USER_NOTICE);
 	the_permalink();
 }
 
@@ -852,6 +897,7 @@
  * @param string $file
  */
 function permalink_single_rss($file = '') {
+ 	user_error('permalink_single_rss() is DEPRECATED; use the_permalink_rss() instead.', E_USER_NOTICE);
 	the_permalink_rss();
 }
 
@@ -867,6 +913,7 @@
  * @return null|string
  */
 function wp_get_links($args = '') {
+ 	user_error('wp_get_links() is DEPRECATED; use get_bookmarks() instead.', E_USER_NOTICE);
 	if ( strpos( $args, '=' ) === false ) {
 		$cat_id = $args;
 		$args = add_query_arg( 'category', $cat_id, $args );
@@ -913,6 +960,7 @@
  */
 function get_links($category = -1, $before = '', $after = '<br />', $between = ' ', $show_images = true, $orderby = 'name',
 			$show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $echo = true) {
+ 	user_error('get_links() is DEPRECATED; use get_bookmarks() instead.', E_USER_NOTICE);
 
 	$order = 'ASC';
 	if ( substr($orderby, 0, 1) == '_' ) {
@@ -1007,6 +1055,7 @@
  * @param string $$deprecated Not Used 
  */
 function get_links_list($order = 'name', $deprecated = '') {
+ 	user_error('get_links_list() is DEPRECATED; use get_categories() instead.', E_USER_NOTICE);
 	$order = strtolower($order);
 
 	// Handle link category sorting
@@ -1053,6 +1102,7 @@
  * @param bool $count the number of links in the db
  */
 function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) {
+	user_error('links_popup_script() is DEPRECATED.', E_USER_NOTICE);
 	if ( $count )
 		$counts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->links");
 
@@ -1075,6 +1125,7 @@
  * @return unknown
  */
 function get_linkrating($link) {
+	user_error('get_linkrating() is DEPRECATED.', E_USER_NOTICE);
 	return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display');
 }
 
@@ -1089,6 +1140,7 @@
  * @return string
  */
 function get_linkcatname($id = 0) {
+	user_error('get_linkcatname() is DEPRECATED.', E_USER_NOTICE);
 	$id = (int) $id;
 
 	if ( empty($id) )
@@ -1116,6 +1168,7 @@
  * @param string $deprecated Not used
  */
 function comments_rss_link($link_text = 'Comments RSS', $deprecated = '') {
+ 	user_error('comment_rss_link() is DEPRECATED; use post_comments_feed_link() instead.', E_USER_NOTICE);
 	post_comments_feed_link($link_text);
 }
 
@@ -1132,6 +1185,7 @@
  * @return string|null
  */
 function get_category_rss_link($echo = false, $cat_ID = 1, $deprecated = '') {
+ 	user_error('get_category_rss_link() is DEPRECATED; use get_category_feed_link() instead.', E_USER_NOTICE);
 	$link = get_category_feed_link($cat_ID, $feed = 'rss2');
 
 	if ( $echo )
@@ -1152,6 +1206,7 @@
  * @return string|null
  */
 function get_author_rss_link($echo = false, $author_id = 1, $deprecated = '') {
+ 	user_error('get_author_rss_link() is DEPRECATED; use get_author_feed_link() instead.', E_USER_NOTICE);
 	$link = get_author_feed_link($author_id);
 	if ( $echo )
 		echo $link;
