Changeset 8742
- Timestamp:
- 08/27/2008 06:45:13 AM (16 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/author-template.php
r8149 r8742 382 382 * 383 383 * @link http://codex.wordpress.org/Template_Tags/the_author_posts_link 384 * @since 1.2 384 * @since 1.2.0 385 385 * @uses $authordata The current author's DB object. 386 386 * @uses get_author_posts_url() … … 401 401 * Retrieve the URL to the author page of the author of the current post. 402 402 * 403 * @since 2.1 403 * @since 2.1.0 404 404 * @uses $wp_rewrite WP_Rewrite 405 405 * @return string The URL to the author's page. … … 454 454 * 455 455 * @link http://codex.wordpress.org/Template_Tags/wp_list_authors 456 * @since 1.2 456 * @since 1.2.0 457 457 * @param array $args The argument array. 458 458 * @return null|string The output, if echo is set to false. -
trunk/wp-includes/bookmark-template.php
r8463 r8742 8 8 9 9 /** 10 * The formatted output of a list of bookmarks 10 * The formatted output of a list of bookmarks. 11 11 * 12 12 * The $bookmarks array must contain bookmark objects and will be iterated over … … 35 35 * 'show_rating' - Default is 0 (integer). Whether to show the link rating. 36 36 * 37 * @since 2.1 37 * @since 2.1.0 38 38 * @access private 39 39 * @usedby wp_list_bookmarks() … … 121 121 122 122 /** 123 * Retrieve or echo all of the bookmarks 123 * Retrieve or echo all of the bookmarks. 124 124 * 125 125 * List of default arguments are as follows: … … 175 175 * @link http://codex.wordpress.org/Template_Tags/wp_list_bookmarks 176 176 * 177 * @since 2.1 177 * @since 2.1.0 178 178 * @uses _list_bookmarks() Used to iterate over all of the bookmarks and return 179 179 * the html -
trunk/wp-includes/bookmark.php
r7990 r8742 10 10 * Retrieve Bookmark data based on ID 11 11 * 12 * @since 2.1 12 * @since 2.1.0 13 13 * @uses $wpdb Database Object 14 14 * … … 40 40 * Retrieve single bookmark data item or field. 41 41 * 42 * @since 2.3 42 * @since 2.3.0 43 43 * @uses get_bookmark() Gets bookmark object using $bookmark as ID 44 44 * @uses sanitize_bookmark_field() Sanitizes Bookmark field based on $context. … … 68 68 * Retrieve bookmark data based on ID. 69 69 * 70 * @since 2.0 70 * @since 2.0.0 71 71 * @deprecated Use get_bookmark() 72 72 * @see get_bookmark() … … 107 107 * separated by commas. 108 108 * 109 * @since 2.1 109 * @since 2.1.0 110 110 * @uses $wpdb Database Object 111 111 * @link http://codex.wordpress.org/Template_Tags/get_bookmarks … … 239 239 * Sanitizes all bookmark fields 240 240 * 241 * @since 2.3 241 * @since 2.3.0 242 242 * 243 243 * @param object|array $bookmark Bookmark row … … 280 280 * $context respectively. 281 281 * 282 * @since 2.3 282 * @since 2.3.0 283 283 * 284 284 * @param string $field The bookmark field … … 334 334 * Deletes entire bookmark cache 335 335 * 336 * @since 2.1 336 * @since 2.1.0 337 337 * @uses wp_cache_delete() Deletes the contents of 'get_bookmarks' 338 338 */ -
trunk/wp-includes/cache.php
r8600 r8742 12 12 * Adds data to the cache, if the cache key doesn't aleady exist. 13 13 * 14 * @since 2.0 14 * @since 2.0.0 15 15 * @uses $wp_object_cache Object Cache Class 16 16 * @see WP_Object_Cache::add() … … 36 36 * make sure that the cache is cleaned up after WordPress no longer needs it. 37 37 * 38 * @since 2.0 38 * @since 2.0.0 39 39 * 40 40 * @return bool Always returns True … … 47 47 * Removes the cache contents matching ID and flag. 48 48 * 49 * @since 2.0 49 * @since 2.0.0 50 50 * @uses $wp_object_cache Object Cache Class 51 51 * @see WP_Object_Cache::delete() … … 64 64 * Removes all cache items. 65 65 * 66 * @since 2.0 66 * @since 2.0.0 67 67 * @uses $wp_object_cache Object Cache Class 68 68 * @see WP_Object_Cache::flush() … … 79 79 * Retrieves the cache contents from the cache by ID and flag. 80 80 * 81 * @since 2.0 81 * @since 2.0.0 82 82 * @uses $wp_object_cache Object Cache Class 83 83 * @see WP_Object_Cache::get() … … 97 97 * Sets up Object Cache Global and assigns it. 98 98 * 99 * @since 2.0 99 * @since 2.0.0 100 100 * @global WP_Object_Cache $wp_object_cache WordPress Object Cache 101 101 */ … … 107 107 * Replaces the contents of the cache with new data. 108 108 * 109 * @since 2.0 109 * @since 2.0.0 110 110 * @uses $wp_object_cache Object Cache Class 111 111 * @see WP_Object_Cache::replace() … … 145 145 * Adds a group or set of groups to the list of global groups. 146 146 * 147 * @since 2.6 147 * @since 2.6.0 148 148 * 149 149 * @param string|array $groups A group or an array of groups to add … … 157 157 * Adds a group or set of groups to the list of non-persistent groups. 158 158 * 159 * @since 2.6 159 * @since 2.6.0 160 160 * 161 161 * @param string|array $groups A group or an array of groups to add … … 189 189 * @var array 190 190 * @access private 191 * @since 2.0 191 * @since 2.0.0 192 192 */ 193 193 var $cache = array (); … … 198 198 * @var array 199 199 * @access private 200 * @since 2.0 200 * @since 2.0.0 201 201 */ 202 202 var $non_existant_objects = array (); … … 205 205 * The amount of times the cache data was already stored in the cache. 206 206 * 207 * @since 2.5 207 * @since 2.5.0 208 208 * @access private 209 209 * @var int … … 216 216 * @var int 217 217 * @access public 218 * @since 2.0 218 * @since 2.0.0 219 219 */ 220 220 var $cache_misses = 0; … … 227 227 * contents existance. 228 228 * 229 * @since 2.0 229 * @since 2.0.0 230 230 * 231 231 * @param int|string $id What to call the contents in the cache … … 255 255 * $non_existant_objects property in the class. 256 256 * 257 * @since 2.0 257 * @since 2.0.0 258 258 * 259 259 * @param int|string $id What the contents in the cache are called … … 278 278 * Clears the object cache of all data 279 279 * 280 * @since 2.0 280 * @since 2.0.0 281 281 * 282 282 * @return bool Always returns true … … 301 301 * the nonexistant objects. 302 302 * 303 * @since 2.0 303 * @since 2.0.0 304 304 * 305 305 * @param int|string $id What the contents in the cache are called … … 328 328 * Replace the contents in the cache, if contents already exist 329 329 * 330 * @since 2.0 330 * @since 2.0.0 331 331 * @see WP_Object_Cache::set() 332 332 * … … 359 359 * more for cache plugins which use files. 360 360 * 361 * @since 2.0 361 * @since 2.0.0 362 362 * 363 363 * @param int|string $id What to call the contents in the cache … … 388 388 * key and the data. 389 389 * 390 * @since 2.0 390 * @since 2.0.0 391 391 */ 392 392 function stats() { … … 409 409 * PHP4 constructor; Calls PHP 5 style constructor 410 410 * 411 * @since 2.0 411 * @since 2.0.0 412 412 * 413 413 * @return WP_Object_Cache -
trunk/wp-includes/canonical.php
r8732 r8742 9 9 * @author Mark Jaquith 10 10 * @package WordPress 11 * @since 2.3 11 * @since 2.3.0 12 12 */ 13 13 14 14 /** 15 * Redirects incoming links to the proper URL based on the site url 15 * Redirects incoming links to the proper URL based on the site url. 16 16 * 17 17 * Search engines consider www.somedomain.com and somedomain.com to be two … … 27 27 * or query in an attempt to figure the correct page to go to. 28 28 * 29 * @since 2.3 29 * @since 2.3.0 30 30 * @uses $wp_rewrite 31 31 * @uses $is_IIS … … 244 244 245 245 /** 246 * Attempts to guess correct post based on query vars 247 * 248 * @since 2.3 246 * Attempts to guess correct post based on query vars. 247 * 248 * @since 2.3.0 249 249 * @uses $wpdb 250 250 * -
trunk/wp-includes/category.php
r8575 r8742 66 66 * The category will converted to maintain backwards compatibility. 67 67 * 68 * @since 2.1.068 * @since 1.5.1 69 69 * @uses get_term() Used to get the category data from the taxonomy. 70 70 * -
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; -
trunk/wp-includes/update.php
r8739 r8742 15 15 * 16 16 * @package WordPress 17 * @since 2.3 17 * @since 2.3.0 18 18 * @uses $wp_version Used to check against the newest WordPress version. 19 19 * … … 89 89 * 90 90 * @package WordPress 91 * @since 2.3 91 * @since 2.3.0 92 92 * @uses $wp_version Used to notidy the WordPress version. 93 93 *
Note: See TracChangeset
for help on using the changeset viewer.