diff -r 2e70094cc46e wp-includes/deprecated.php
--- a/wp-includes/deprecated.php	Fri Oct 12 08:13:54 2007 -0400
+++ b/wp-includes/deprecated.php	Fri Oct 12 21:00:25 2007 -0400
@@ -16,10 +16,14 @@
 
 /*
  * Deprecated functions come here to die.
+ *
+ * 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);
  */
 
 // Use get_post().
 function get_postdata($postid) {
+	user_error('get_postdata() is DEPRECATED; please use get_post() instead.', E_USER_NOTICE);
 	$post = &get_post($postid);
 
 	$postdata = array (
@@ -45,6 +49,7 @@ function get_postdata($postid) {
 
 // Use the new post 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.
@@ -54,6 +59,7 @@ function start_wp() {
 }
 
 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;
@@ -65,6 +71,7 @@ function the_category_ID($echo = true) {
 }
 
 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();
@@ -79,6 +86,7 @@ function the_category_head($before='', $
 
 // Use previous_post_link().
 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;
@@ -100,6 +108,7 @@ function previous_post($format='%', $pre
 
 // Use next_post_link().
 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;
@@ -125,18 +134,21 @@ function next_post($format='%', $next='n
 
 /* returns true if $user_id can create a new post */
 function user_can_create_post($user_id, $blog_id = 1, $category_id = 'None') {
+	user_error('user_can_create_post() is DEPRECATED; current_user_can() instead.', E_USER_NOTICE);
 	$author_data = get_userdata($user_id);
 	return ($author_data->user_level > 1);
 }
 
 /* returns true if $user_id can create a new post */
 function user_can_create_draft($user_id, $blog_id = 1, $category_id = 'None') {
+	user_error('user_can_create_draft() is DEPRECATED; current_user_can() instead.', E_USER_NOTICE);
 	$author_data = get_userdata($user_id);
 	return ($author_data->user_level >= 1);
 }
 
 /* returns true if $user_id can edit $post_id */
 function user_can_edit_post($user_id, $post_id, $blog_id = 1) {
+	user_error('user_can_edit_post() is DEPRECATED; 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);
@@ -152,35 +164,41 @@ function user_can_edit_post($user_id, $p
 
 /* returns true if $user_id can delete $post_id */
 function user_can_delete_post($user_id, $post_id, $blog_id = 1) {
+	user_error('user_can_delete_post() is DEPRECATED; 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);
 }
 
 /* returns true if $user_id can set new posts' dates on $blog_id */
 function user_can_set_post_date($user_id, $blog_id = 1, $category_id = 'None') {
+	user_error('user_can_set_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_create_post($user_id, $blog_id, $category_id));
 }
 
 /* returns true if $user_id can edit $post_id's date */
 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));
 }
 
 /* returns true if $user_id can edit $post_id's comments */
 function user_can_edit_post_comments($user_id, $post_id, $blog_id = 1) {
+	user_error('user_can_post_comments() is DEPRECATED; current_user_can() instead.', E_USER_NOTICE);
 	// 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);
 }
 
 /* returns true if $user_id can delete $post_id's comments */
 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);
 	// right now if one can edit comments, one can delete comments
 	return user_can_edit_post_comments($user_id, $post_id, $blog_id);
 }
 
 function user_can_edit_user($user_id, $other_user) {
+	user_error('user_can_edit_user() is DEPRECATED; current_user_can() instead.', E_USER_NOTICE);
 	$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 )
@@ -215,6 +233,7 @@ function get_linksbyname($cat_name = "no
 												 $between = " ", $show_images = true, $orderby = 'id',
 												 $show_description = true, $show_rating = false,
 												 $limit = -1, $show_updated = 0) {
+		user_error('get_linksbyname() is DEPRECATED.', E_USER_NOTICE);
 		global $wpdb;
 		$cat_id = -1;
 		$cat = get_term_by('name', $cat_name, 'link_category');
@@ -231,6 +250,7 @@ function get_linksbyname($cat_name = "no
  **   category (no default)  - The category to use.
  **/
 function wp_get_linksbyname($category, $args = '') {
+	user_error('wp_get_linksbyname() is DEPRECATED.', E_USER_NOTICE);
 	global $wpdb;
 
 	$cat = get_term_by('name', $cat_name, 'link_category');
@@ -262,6 +282,7 @@ function wp_get_linksbyname($category, $
  ** }
  **/
 function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit = -1) {
+		user_error('get_linkobjectsbyname() is DEPRECATED.', E_USER_NOTICE);
 		global $wpdb;
 		$cat_id = -1;
 		$cat = get_term_by('name', $cat_name, 'link_category');
@@ -308,6 +329,7 @@ function get_linkobjectsbyname($cat_name
  **/
 // Deprecate in favor of get_linkz().
 function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {
+		user_error('get_linkobjects() is DEPRECATED.', E_USER_NOTICE);
 		global $wpdb;
 
 		$links = get_bookmarks("category=$category&orderby=$orderby&limit=$limit");
@@ -345,6 +367,7 @@ function get_linksbyname_withrating($cat
 																		$after = '<br />', $between = " ",
 																		$show_images = true, $orderby = 'id',
 																		$show_description = true, $limit = -1, $show_updated = 0) {
+		user_error('get_linksbyname_withrating() is DEPRECATED.', E_USER_NOTICE);
 
 		get_linksbyname($cat_name, $before, $after, $between, $show_images,
 										$orderby, $show_description, true, $limit, $show_updated);
@@ -375,6 +398,7 @@ function get_links_withrating($category 
 															$between = " ", $show_images = true,
 															$orderby = 'id', $show_description = true,
 															$limit = -1, $show_updated = 0) {
+		user_error('get_links_withrating() is DEPRECATED.', E_USER_NOTICE);
 
 		get_links($category, $before, $after, $between, $show_images, $orderby,
 							$show_description, true, $limit, $show_updated);
@@ -386,17 +410,20 @@ function get_links_withrating($category 
  **                uses 0
  */
 function get_autotoggle($id = 0) {
+	user_error('get_autotoggle() is DEPRECATED.', E_USER_NOTICE);
 	return 0;
 }
 
 // Use wp_list_cats().
 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.', 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);
 }
 
 function wp_list_cats($args = '') {
+	user_error('wp_list_cats() is DEPRECATED.', E_USER_NOTICE);
 	$r = wp_parse_args( $args );
 
 	// Map to new names.
@@ -420,6 +447,7 @@ function dropdown_cats($optionall = 1, $
 function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc',
 		$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 )
@@ -437,30 +465,36 @@ function dropdown_cats($optionall = 1, $
 
 // Use wp_print_scripts() or WP_Scripts.
 function tinymce_include() {
+	user_error('tinymce_include() is DEPRECATED. Use wp_print_scripts() or WP_Scripts instead.', E_USER_NOTICE);
 	wp_print_script('wp_tiny_mce');
 }
 
 function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') {
+	user_error('list_authors() is DEPRECATED.', E_USER_NOTICE);
 	$args = compact('optioncount', 'exclude_admin', 'show_fullname', 'hide_empty', 'feed', 'feed_image');
 	return wp_list_authors($args);
 }
 
 function wp_get_post_cats($blogid = '1', $post_ID = 0) {
+	user_error('wp_get_post_cats() is DEPRECATED.', E_USER_NOTICE);
 	return wp_get_post_categories($post_ID);
 }
 
 function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) {
+	user_error('wp_set_post_cats() is DEPRECATED.', E_USER_NOTICE);
 	return wp_set_post_categories($post_ID, $post_categories);
 }
 
 // Use wp_get_archives().
 function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) {
+	user_error('get_archives() is DEPRECATED. Please use wp_get_archives() instead.', E_USER_NOTICE);
 	$args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
 	return wp_get_archives($args);
 }
 
 // Use get_author_posts_url().
 function get_author_link($echo = false, $author_id, $author_nicename = '') {
+	user_error('get_link_link() is DEPRECATED. Please use get_author_posts_url() instead.', E_USER_NOTICE);
 	$link = get_author_posts_url($author_id, $author_nicename);
 
 	if ( $echo )
@@ -470,22 +504,26 @@ function get_author_link($echo = false, 
 
 // Use wp_link_pages().
 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. Please 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);
 }
 
 // Use get_option().
 function get_settings($option) {
+	user_error('get_settings() is DEPRECATED. Please use get_option() instead.', E_USER_NOTICE);
 	return get_option($option);
 }
 
 // Use the_permalink().
 function permalink_link() {
+	user_error('permalink_link() is DEPRECATED. Please use the_permalink() instead.', E_USER_NOTICE);
 	the_permalink();
 }
 
 // Use the_permalink_rss()
 function permalink_single_rss($file = '') {
+	user_error('permalink_single_rss() is DEPRECATED. Please use the_permalink_rss() instead.', E_USER_NOTICE);
 	the_permalink_rss();
 }
 
@@ -497,6 +535,7 @@ function permalink_single_rss($file = ''
  **   a query string
  **/
 function wp_get_links($args = '') {
+	user_error('wp_get_links() is DEPRECATED.', E_USER_NOTICE);
 	global $wpdb;
 
 	if ( strpos( $args, '=' ) === false ) {
@@ -553,6 +592,7 @@ function get_links($category = -1,
 			$limit = -1,
 			$show_updated = 1,
 			$echo = true) {
+	user_error('get_links() is DEPRECATED.', E_USER_NOTICE);
 
 	global $wpdb;
 
@@ -647,6 +687,7 @@ function get_links($category = -1,
  *   hide_if_empty (default true)  - Supress listing empty link categories
  */
 function get_links_list($order = 'name', $hide_if_empty = 'obsolete') {
+	user_error('get_links_list() is DEPRECATED.', E_USER_NOTICE);
 	$order = strtolower($order);
 
 	// Handle link category sorting
@@ -689,6 +730,7 @@ function get_links_list($order = 'name',
  **   count (default true) - 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");
 
@@ -704,6 +746,7 @@ function links_popup_script($text = 'Lin
 
 
 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');
 }
 
@@ -713,6 +756,7 @@ function get_linkrating($link) {
  **                uses 0
  */
 function get_linkcatname($id = 0) {
+	user_error('get_linkcatname() is DEPRECATED.', E_USER_NOTICE);
 	$id = (int) $id;
 
 	if ( empty($id) )
