Changeset 8809
- Timestamp:
- 09/04/2008 11:12:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r8800 r8809 1 1 <?php 2 3 // 4 // "The Loop" post functions 5 // 6 2 /** 3 * WordPress Post Template Functions 4 * 5 * Gets content for the current post in the loop. 6 * 7 * @package WordPress 8 * @subpackage Template 9 */ 10 11 /** 12 * the_ID() - {@internal Missing Short Description}} 13 * 14 * {@internal Missing Long Description}} 15 * 16 * @since 0.71 17 * @uses $id 18 */ 7 19 function the_ID() { 8 20 global $id; … … 10 22 } 11 23 12 24 /** 25 * get_the_ID() - {@internal Missing Short Description}} 26 * 27 * {@internal Missing Long Description}} 28 * 29 * @since 2.1.0 30 * @uses $id 31 * 32 * @return unknown 33 */ 13 34 function get_the_ID() { 14 35 global $id; … … 16 37 } 17 38 18 39 /** 40 * the_title() - {@internal Missing Short Description}} 41 * 42 * {@internal Missing Long Description}} 43 * 44 * @since 0.71 45 * 46 * @param unknown_type $before 47 * @param unknown_type $after 48 * @param unknown_type $echo 49 * @return unknown 50 */ 19 51 function the_title($before = '', $after = '', $echo = true) { 20 52 $title = get_the_title(); … … 31 63 } 32 64 65 /** 66 * the_title_attribute() - {@internal Missing Short Description}} 67 * 68 * {@internal Missing Long Description}} 69 * 70 * @since 2.3.0 71 * 72 * @param unknown_type $args 73 * @return unknown 74 */ 33 75 function the_title_attribute( $args = '' ) { 34 76 $title = get_the_title(); … … 51 93 } 52 94 95 /** 96 * get_the_title() - {@internal Missing Short Description}} 97 * 98 * {@internal Missing Long Description}} 99 * 100 * @since 0.71 101 * 102 * @param unknown_type $id 103 * @return unknown 104 */ 53 105 function get_the_title( $id = 0 ) { 54 106 $post = &get_post($id); … … 65 117 } 66 118 119 /** 120 * the_guid() - {@internal Missing Short Description}} 121 * 122 * {@internal Missing Long Description}} 123 * 124 * @since 1.5.0 125 * 126 * @param unknown_type $id 127 */ 67 128 function the_guid( $id = 0 ) { 68 129 echo get_the_guid($id); 69 130 } 70 131 132 /** 133 * get_the_guid() - {@internal Missing Short Description}} 134 * 135 * {@internal Missing Long Description}} 136 * 137 * @since 1.5.0 138 * 139 * @param unknown_type $id 140 * @return unknown 141 */ 71 142 function get_the_guid( $id = 0 ) { 72 143 $post = &get_post($id); … … 75 146 } 76 147 148 /** 149 * the_content() - {@internal Missing Short Description}} 150 * 151 * {@internal Missing Long Description}} 152 * 153 * @since 0.71 154 * 155 * @param unknown_type $more_link_text 156 * @param unknown_type $stripteaser 157 * @param unknown_type $more_file 158 */ 77 159 function the_content($more_link_text = NULL, $stripteaser = 0, $more_file = '') { 78 160 $content = get_the_content($more_link_text, $stripteaser, $more_file); … … 82 164 } 83 165 84 166 /** 167 * get_the_content() - {@internal Missing Short Description}} 168 * 169 * {@internal Missing Long Description}} 170 * 171 * @since 0.71 172 * 173 * @param unknown_type $more_link_text 174 * @param unknown_type $stripteaser 175 * @param unknown_type $more_file 176 * @return unknown 177 */ 85 178 function get_the_content($more_link_text = NULL, $stripteaser = 0, $more_file = '') { 86 179 global $id, $post, $more, $page, $pages, $multipage, $preview, $pagenow; … … 134 227 } 135 228 136 229 /** 230 * the_excerpt() - {@internal Missing Short Description}} 231 * 232 * {@internal Missing Long Description}} 233 * 234 * @since 0.71 235 * @uses apply_filters() - 236 */ 137 237 function the_excerpt() { 138 238 echo apply_filters('the_excerpt', get_the_excerpt()); 139 239 } 140 240 141 241 /** 242 * get_the_excerpt() - {@internal Missing Short Description}} 243 * 244 * {@internal Missing Long Description}} 245 * 246 * @since 0.71 247 * 248 * @param unknown_type $deprecated 249 * @return unknown 250 */ 142 251 function get_the_excerpt($deprecated = '') { 143 252 global $post; … … 152 261 } 153 262 263 /** 264 * has_excerpt() - {@internal Missing Short Description}} 265 * 266 * {@internal Missing Long Description}} 267 * 268 * @since 2.3.0 269 * 270 * @param unknown_type $id 271 * @return unknown 272 */ 154 273 function has_excerpt( $id = 0 ) { 155 274 $post = &get_post( $id ); … … 269 388 } 270 389 390 /** 391 * wp_link_pages() - {@internal Missing Short Description}} 392 * 393 * {@internal Missing Long Description}} 394 * 395 * @since 1.2.0 396 * 397 * @param unknown_type $args 398 * @return unknown 399 */ 271 400 function wp_link_pages($args = '') { 272 401 $defaults = array( … … 349 478 // 350 479 351 480 /** 481 * post_custom() - {@internal Missing Short Description}} 482 * 483 * {@internal Missing Long Description}} 484 * 485 * @since 1.5.0 486 * 487 * @param unknown_type $key 488 * @return unknown 489 */ 352 490 function post_custom( $key = '' ) { 353 491 $custom = get_post_custom(); … … 361 499 362 500 // this will probably change at some point... 501 /** 502 * the_meta() - {@internal Missing Short Description}} 503 * 504 * {@internal Missing Long Description}} 505 * 506 * @since 1.2.0 507 * @uses apply_filters() 508 */ 363 509 function the_meta() { 364 510 if ( $keys = get_post_custom_keys() ) { … … 381 527 // 382 528 529 /** 530 * wp_dropdown_pages() - {@internal Missing Short Description}} 531 * 532 * {@internal Missing Long Description}} 533 * 534 * @since 2.1.0 535 * 536 * @param unknown_type $args 537 * @return unknown 538 */ 383 539 function wp_dropdown_pages($args = '') { 384 540 $defaults = array( … … 410 566 } 411 567 568 /** 569 * wp_list_pages() - {@internal Missing Short Description}} 570 * 571 * {@internal Missing Long Description}} 572 * 573 * @since 1.5.0 574 * 575 * @param unknown_type $args 576 * @return unknown 577 */ 412 578 function wp_list_pages($args = '') { 413 579 $defaults = array( … … 460 626 // 461 627 628 /** 629 * walk_page_tree() - {@internal Missing Short Description}} 630 * 631 * {@internal Missing Long Description}} 632 * 633 * @since 2.1.0 634 * 635 * @return unknown 636 */ 462 637 function walk_page_tree() { 463 638 $walker = new Walker_Page; … … 466 641 } 467 642 643 /** 644 * walk_page_dropdown_tree() - {@internal Missing Short Description}} 645 * 646 * {@internal Missing Long Description}} 647 * 648 * @since 2.1.0 649 * 650 * @return unknown 651 */ 468 652 function walk_page_dropdown_tree() { 469 653 $walker = new Walker_PageDropdown; … … 476 660 // 477 661 662 /** 663 * the_attachment_link() - {@internal Missing Short Description}} 664 * 665 * {@internal Missing Long Description}} 666 * 667 * @since 2.0.0 668 * 669 * @param unknown_type $id 670 * @param unknown_type $fullsize 671 * @param unknown_type $max_dims 672 */ 478 673 function the_attachment_link($id = 0, $fullsize = false, $deprecated = false, $permalink = false) { 479 674 if ( $fullsize ) … … 523 718 524 719 // deprecated: use wp_get_attachment_image_src() 720 /** 721 * get_attachment_icon_src() - {@internal Missing Short Description}} 722 * 723 * {@internal Missing Long Description}} 724 * 725 * @since 2.1.0 726 * 727 * @param unknown_type $id 728 * @param unknown_type $fullsize 729 * @return unknown 730 */ 525 731 function get_attachment_icon_src( $id = 0, $fullsize = false ) { 526 732 $id = (int) $id; … … 555 761 556 762 // deprecated: use wp_get_attachment_image() 763 /** 764 * get_attachment_icon() - {@internal Missing Short Description}} 765 * 766 * {@internal Missing Long Description}} 767 * 768 * @since 2.0.0 769 * 770 * @param unknown_type $id 771 * @param unknown_type $fullsize 772 * @param unknown_type $max_dims 773 * @return unknown 774 */ 557 775 function get_attachment_icon( $id = 0, $fullsize = false, $max_dims = false ) { 558 776 $id = (int) $id; … … 599 817 600 818 // deprecated: use wp_get_attachment_image() 819 /** 820 * get_attachment_innerHTML() - {@internal Missing Short Description}} 821 * 822 * {@internal Missing Long Description}} 823 * 824 * @since 2.0.0 825 * 826 * @param unknown_type $id 827 * @param unknown_type $fullsize 828 * @param unknown_type $max_dims 829 * @return unknown 830 */ 601 831 function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false) { 602 832 $id = (int) $id; … … 613 843 } 614 844 845 /** 846 * prepend_attachment() - {@internal Missing Short Description}} 847 * 848 * {@internal Missing Long Description}} 849 * 850 * @since 2.0.0 851 * 852 * @param unknown_type $content 853 * @return unknown 854 */ 615 855 function prepend_attachment($content) { 616 856 global $post; … … 632 872 // 633 873 874 /** 875 * get_the_password_form() - {@internal Missing Short Description}} 876 * 877 * {@internal Missing Long Description}} 878 * 879 * @since 1.0.0 880 * 881 * @return unknown 882 */ 634 883 function get_the_password_form() { 635 884 global $post; … … 650 899 * that template. 651 900 * 652 * @package Template Tags 653 * @global object $wp_query 901 * @since 2.5.0 902 * @uses $wp_query 903 * 654 904 * @param string $template The specific template name if specific matching is required 905 * @return bool False on failure, true if success 655 906 */ 656 907 function is_page_template($template = '') {
Note: See TracChangeset
for help on using the changeset viewer.