Changeset 4791
- Timestamp:
- 01/23/07 09:15:17 (2 years ago)
- Files:
-
- trunk/wp-includes/deprecated.php (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/deprecated.php
r4726 r4791 2 2 3 3 /* 4 * Deprecated global variables.4 * Deprecated global variables. 5 5 */ 6 6 7 7 $tableposts = $wpdb->posts; 8 8 $tableusers = $wpdb->users; … … 16 16 17 17 /* 18 * Deprecated functio s come here to die.18 * Deprecated functions come here to die. 19 19 */ 20 20 21 // Deprecated.Use get_post().21 // Use get_post(). 22 22 function get_postdata($postid) { 23 23 $post = &get_post($postid); … … 44 44 } 45 45 46 // Deprecated.Use the new post loop.46 // Use the new post loop. 47 47 function start_wp() { 48 48 global $wp_query, $post; … … 54 54 } 55 55 56 // Deprecated.57 56 function the_category_ID($echo = true) { 58 57 // Grab the first cat in the list. … … 66 65 } 67 66 68 // Deprecated.69 67 function the_category_head($before='', $after='') { 70 68 global $currentcat, $previouscat; … … 80 78 } 81 79 82 // Deprecated.Use previous_post_link().80 // Use previous_post_link(). 83 81 function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') { 84 82 … … 101 99 } 102 100 103 // Deprecated.Use next_post_link().101 // Use next_post_link(). 104 102 function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') { 105 103 … … 123 121 124 122 // 125 // These are deprecated. Use current_user_can().123 // Use current_user_can() for these. 126 124 // 127 125 … … 245 243 $args = add_query_arg('category', $cat_id, $args); 246 244 wp_get_links($args); 247 } // end wp_get_linksbyname245 } 248 246 249 247 /** function get_linkobjectsbyname() … … 422 420 } 423 421 422 // Use wp_list_cats(). 424 423 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) { 425 424 $query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children', … … 470 469 } 471 470 472 // Deprecated. Use wp_print_scripts() or WP_Scripts instead.471 // Use wp_print_scripts() or WP_Scripts. 473 472 function tinymce_include() { 474 wp_print_script( 'wp_tiny_mce');473 wp_print_script('wp_tiny_mce'); 475 474 } 476 475 … … 488 487 } 489 488 489 // Use wp_get_archives(). 490 490 function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) { 491 491 $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count'); … … 493 493 } 494 494 495 // Deprecated.Use get_author_posts_url().495 // Use get_author_posts_url(). 496 496 function get_author_link($echo = false, $author_id, $author_nicename = '') { 497 497 $link = get_author_posts_url($author_id, $author_nicename); … … 502 502 } 503 503 504 // Use wp_link_pages(). 504 505 function link_pages($before='<br />', $after='<br />', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page', $pagelink='%', $more_file='') { 505 506 $args = compact('before', 'after', 'next_or_number', 'nextpagelink', 'previouspagelink', 'pagelink', 'more_file'); … … 507 508 } 508 509 510 // Use get_option(). 509 511 function get_settings($option) { 510 512 return get_option($option);
