Changeset 8742 for trunk/wp-includes/deprecated.php
- Timestamp:
- 08/27/2008 06:45:13 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/deprecated.php
r8543 r8742 1 1 <?php 2 2 /** 3 * Deprecated functions from past WordPress versions 3 * Deprecated functions from past WordPress versions. You shouldn't use these 4 * globals and functions and look for the alternatives instead. The functions 5 * and globals will be removed in a later version. 6 * 4 7 * @package WordPress 5 8 * @subpackage Deprecated … … 77 80 78 81 /** 79 * get_postdata() - Entire Post data82 * Entire Post data. 80 83 * 81 84 * @since 0.71 … … 113 116 114 117 /** 115 * start_wp() - Sets up the WordPress Loop118 * Sets up the WordPress Loop. 116 119 * 117 120 * @since 1.0.1 … … 130 133 131 134 /** 132 * the_category_ID() - Return or Print Category ID135 * Return or Print Category ID. 133 136 * 134 137 * @since 0.71 … … 153 156 154 157 /** 155 * the_category_head() - Print category with optional text before and after158 * Print category with optional text before and after. 156 159 * 157 160 * @since 0.71 … … 179 182 180 183 /** 181 * previous_post() - Prints link to the previous post184 * Prints link to the previous post. 182 185 * 183 186 * @since 1.5 … … 215 218 216 219 /** 217 * next_post() - Prints link to the next post220 * Prints link to the next post. 218 221 * 219 222 * @since 0.71 … … 250 253 251 254 /** 252 * user_can_create_post() - Whether user can create a post255 * Whether user can create a post. 253 256 * 254 257 * @since 1.5 … … 269 272 270 273 /** 271 * user_can_create_draft() - Whether user can create a post274 * Whether user can create a post. 272 275 * 273 276 * @since 1.5 … … 288 291 289 292 /** 290 * user_can_edit_post() - Whether user can edit a post293 * Whether user can edit a post. 291 294 * 292 295 * @since 1.5 … … 316 319 317 320 /** 318 * user_can_delete_post() - Whether user can delete a post321 * Whether user can delete a post. 319 322 * 320 323 * @since 1.5 … … 335 338 336 339 /** 337 * user_can_set_post_date() - Whether user can set new posts' dates340 * Whether user can set new posts' dates. 338 341 * 339 342 * @since 1.5 … … 353 356 } 354 357 355 /* returns true if $user_id can edit $post_id's date */ 356 /** 357 * user_can_edit_post_date() - Whether user can delete a post 358 /** 359 * Whether user can delete a post. 358 360 * 359 361 * @since 1.5 … … 364 366 * @param int $post_id 365 367 * @param int $blog_id Not Used 366 * @return bool 368 * @return bool returns true if $user_id can edit $post_id's date 367 369 */ 368 370 function user_can_edit_post_date($user_id, $post_id, $blog_id = 1) { … … 373 375 } 374 376 375 /* returns true if $user_id can edit $post_id's comments */ 376 /** 377 * user_can_edit_post_comments() - Whether user can delete a post 377 /** 378 * Whether user can delete a post. 378 379 * 379 380 * @since 1.5 … … 384 385 * @param int $post_id 385 386 * @param int $blog_id Not Used 386 * @return bool 387 * @return bool returns true if $user_id can edit $post_id's comments 387 388 */ 388 389 function user_can_edit_post_comments($user_id, $post_id, $blog_id = 1) { … … 393 394 } 394 395 395 /* returns true if $user_id can delete $post_id's comments */ 396 /** 397 * user_can_delete_post_comments() - Whether user can delete a post 396 /** 397 * Whether user can delete a post. 398 398 * 399 399 * @since 1.5 … … 404 404 * @param int $post_id 405 405 * @param int $blog_id Not Used 406 * @return bool 406 * @return bool returns true if $user_id can delete $post_id's comments 407 407 */ 408 408 function user_can_delete_post_comments($user_id, $post_id, $blog_id = 1) { … … 414 414 415 415 /** 416 * user_can_edit_user() - Can user can edit other user416 * Can user can edit other user. 417 417 * 418 418 * @since 1.5 … … 436 436 437 437 /** 438 * get_linksbyname() -Gets the links associated with category $cat_name.438 * Gets the links associated with category $cat_name. 439 439 * 440 440 * @since 0.71 … … 442 442 * @see get_links() 443 443 * 444 * @param string $cat_nameOptional. The category name to use. If no match is found uses all.445 * @param string $beforeOptional. The html to output before the link.446 * @param string $afterOptional. The html to output after the link.447 * @param string $betweenOptional. The html to output between the link/image and it's description. Not used if no image or $show_images is true.448 * @param bool 449 * @param string $orderbyOptional. The order to output the links. E.g. 'id', 'name', 'url', 'description' or 'rating'. Or maybe owner.444 * @param string $cat_name Optional. The category name to use. If no match is found uses all. 445 * @param string $before Optional. The html to output before the link. 446 * @param string $after Optional. The html to output after the link. 447 * @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. 448 * @param bool $show_images Optional. Whether to show images (if defined). 449 * @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url', 'description' or 'rating'. Or maybe owner. 450 450 * 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 451 451 * random order. 452 * @param bool 453 * @param bool 454 * @param int 455 * @param int 452 * @param bool $show_description Optional. Whether to show the description if show_images=false/not defined. 453 * @param bool $show_rating Optional. Show rating stars/chars. 454 * @param int $limit Optional. Limit to X entries. If not specified, all entries are shown. 455 * @param int $show_updated Optional. Whether to show last updated timestamp 456 456 */ 457 457 function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id', … … 469 469 470 470 /** 471 * wp_get_linksbyname() -Gets the links associated with the named category.471 * Gets the links associated with the named category. 472 472 * 473 473 * @since 1.0.1 … … 492 492 493 493 /** 494 * get_linkobjectsbyname() -Gets an array of link objects associated with category $cat_name.494 * Gets an array of link objects associated with category $cat_name. 495 495 * 496 496 * <code> … … 524 524 525 525 /** 526 * get_linkobjects() -Gets an array of link objects associated with category n.526 * Gets an array of link objects associated with category n. 527 527 * 528 528 * Usage: … … 578 578 579 579 /** 580 * get_linksbyname_withrating() -Gets the links associated with category 'cat_name' and display rating stars/chars.580 * Gets the links associated with category 'cat_name' and display rating stars/chars. 581 581 * 582 582 * @since 0.71 … … 605 605 606 606 /** 607 * get_links_withrating() -Gets the links associated with category n and display rating stars/chars.607 * Gets the links associated with category n and display rating stars/chars. 608 608 * 609 609 * @since 0.71 … … 632 632 633 633 /** 634 * get_autotoggle() - Gets the auto_toggle setting634 * Gets the auto_toggle setting. 635 635 * 636 636 * @since 0.71 … … 794 794 795 795 /** 796 * wp_set_post_cats() -Sets the categories that the post id belongs to.796 * Sets the categories that the post id belongs to. 797 797 * 798 798 * @since 1.0.1 … … 830 830 831 831 /** 832 * get_author_link() - Returns or Prints link to the author's posts832 * Returns or Prints link to the author's posts. 833 833 * 834 834 * @since 1.2 … … 852 852 853 853 /** 854 * link_pages() - Print list of pages based on arguments854 * Print list of pages based on arguments. 855 855 * 856 856 * @since 0.71 … … 876 876 877 877 /** 878 * get_settings() - Get value based on option878 * Get value based on option. 879 879 * 880 880 * @since 0.71 … … 892 892 893 893 /** 894 * permalink_link() - Print the permalink of the current post in the loop894 * Print the permalink of the current post in the loop. 895 895 * 896 896 * @since 0.71 … … 904 904 905 905 /** 906 * permalink_single_rss() - Print the permalink to the RSS feed906 * Print the permalink to the RSS feed. 907 907 * 908 908 * @since 0.71 … … 918 918 919 919 /** 920 * wp_get_links() -Gets the links associated with category.920 * Gets the links associated with category. 921 921 * 922 922 * @see get_links() for argument information that can be used in $args … … 952 952 953 953 /** 954 * get_links() -Gets the links associated with category by id.954 * Gets the links associated with category by id. 955 955 * 956 956 * @since 0.71 … … 1057 1057 1058 1058 /** 1059 * get_links_list() - Output entire list of links by category 1060 * 1061 * Output a list of all links, listed by category, using the 1062 * settings in $wpdb->linkcategories and output it as a nested 1063 * HTML unordered list. 1059 * Output entire list of links by category. 1060 * 1061 * Output a list of all links, listed by category, using the settings in 1062 * $wpdb->linkcategories and output it as a nested HTML unordered list. 1064 1063 * 1065 1064 * @author Dougal … … 1105 1104 1106 1105 /** 1107 * links_popup_script() - Show the link to the links popup and the number of links1106 * Show the link to the links popup and the number of links. 1108 1107 * 1109 1108 * @author Fullo … … 1149 1148 1150 1149 /** 1151 * get_linkcatname() -Gets the name of category by id.1150 * Gets the name of category by id. 1152 1151 * 1153 1152 * @since 0.71 … … 1178 1177 1179 1178 /** 1180 * comment_rss_link() - Print RSS comment feed link1179 * Print RSS comment feed link. 1181 1180 * 1182 1181 * @since 1.0.1 … … 1193 1192 1194 1193 /** 1195 * get_category_rss_link() - Print/Return link to category RSS2 feed1194 * Print/Return link to category RSS2 feed. 1196 1195 * 1197 1196 * @since 1.2 … … 1215 1214 1216 1215 /** 1217 * get_author_rss_link() - Print/Return link to author RSS feed1216 * Print/Return link to author RSS feed. 1218 1217 * 1219 1218 * @since 1.2 … … 1236 1235 1237 1236 /** 1238 * comments_rss() - Return link to the post RSS feed1237 * Return link to the post RSS feed. 1239 1238 * 1240 1239 * @since 1.5 … … 1251 1250 1252 1251 /** 1253 * create_user() - An alias of wp_create_user(). 1252 * An alias of wp_create_user(). 1253 * 1254 1254 * @param string $username The user's username. 1255 1255 * @param string $password The user's password. … … 1265 1265 1266 1266 /** 1267 * documentation_link() - Unused Admin function 1267 * Unused Admin function. 1268 * 1268 1269 * @since 2.0 1269 1270 * @param string $deprecated Unknown … … 1276 1277 1277 1278 /** 1278 * gzip_compression() - Unused function1279 * Unused function. 1279 1280 * 1280 1281 * @deprecated 2.5 1281 1282 */ 1282 1283 1283 function gzip_compression() { 1284 1284 return false;
Note: See TracChangeset
for help on using the changeset viewer.