Changeset 8242 for branches/crazyhorse/wp-includes/comment-template.php
- Timestamp:
- 07/02/2008 11:07:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crazyhorse/wp-includes/comment-template.php
r7999 r8242 10 10 11 11 /** 12 * get_comment_author() - Retrieve the author of the current comment13 * 14 * If the comment has an empty comment_author field, then 'Anonymous' person 15 * isassumed.12 * Retrieve the author of the current comment. 13 * 14 * If the comment has an empty comment_author field, then 'Anonymous' person is 15 * assumed. 16 16 * 17 17 * @since 1.5 … … 30 30 31 31 /** 32 * comment_author() - Displays the author of the current comment32 * Displays the author of the current comment. 33 33 * 34 34 * @since 0.71 … … 41 41 42 42 /** 43 * get_comment_author_email() - Retrieve the email of the author of the current comment43 * Retrieve the email of the author of the current comment. 44 44 * 45 45 * @since 1.5 … … 55 55 56 56 /** 57 * comment_author_email() - Display the email of the author of the current global $comment 58 * 59 * Care should be taken to protect the email address and assure that email harvesters 60 * do not capture your commentors' email address. Most assume that their email address will 61 * not appear in raw form on the blog. Doing so will enable anyone, including those that 62 * people don't want to get the email address and use it for their own means good and bad. 57 * Display the email of the author of the current global $comment. 58 * 59 * Care should be taken to protect the email address and assure that email 60 * harvesters do not capture your commentors' email address. Most assume that 61 * their email address will not appear in raw form on the blog. Doing so will 62 * enable anyone, including those that people don't want to get the email 63 * address and use it for their own means good and bad. 63 64 * 64 65 * @since 0.71 … … 70 71 71 72 /** 72 * comment_author_email_link() - Display the html email link to the author of the current comment 73 * 74 * Care should be taken to protect the email address and assure that email harvesters 75 * do not capture your commentors' email address. Most assume that their email address will 76 * not appear in raw form on the blog. Doing so will enable anyone, including those that 77 * people don't want to get the email address and use it for their own means good and bad. 73 * Display the html email link to the author of the current comment. 74 * 75 * Care should be taken to protect the email address and assure that email 76 * harvesters do not capture your commentors' email address. Most assume that 77 * their email address will not appear in raw form on the blog. Doing so will 78 * enable anyone, including those that people don't want to get the email 79 * address and use it for their own means good and bad. 78 80 * 79 81 * @since 0.71 … … 97 99 98 100 /** 99 * get_comment_author_link() - Retrieve the html link to the url of the author of the current comment101 * Retrieve the html link to the url of the author of the current comment. 100 102 * 101 103 * @since 1.5 … … 117 119 118 120 /** 119 * comment_author_link() - Display the html link to the url of the author of the current comment121 * Display the html link to the url of the author of the current comment. 120 122 * 121 123 * @since 0.71 … … 127 129 128 130 /** 129 * get_comment_author_IP() - Retrieve the IP address of the author of the current comment131 * Retrieve the IP address of the author of the current comment. 130 132 * 131 133 * @since 1.5 … … 141 143 142 144 /** 143 * comment_author_IP() - Displays the IP address of the author of the current comment145 * Display the IP address of the author of the current comment. 144 146 * 145 147 * @since 0.71 … … 151 153 152 154 /** 153 * get_comment_author_url() - Returns the url of the author of the current comment155 * Retrieve the url of the author of the current comment. 154 156 * 155 157 * @since 1.5 … … 164 166 165 167 /** 166 * comment_author_url() - Display the url of the author of the current comment168 * Display the url of the author of the current comment. 167 169 * 168 170 * @since 0.71 … … 175 177 176 178 /** 177 * get_comment_author_url_link() - Retrieves the HTML link of the url of the author of the current comment 178 * 179 * $linktext parameter is only used if the URL does not exist for the comment author. If the URL does 180 * exist then the URL will be used and the $linktext will be ignored. 181 * 182 * Encapsulate the HTML link between the $before and $after. So it will appear in the order of $before, 183 * link, and finally $after. 179 * Retrieves the HTML link of the url of the author of the current comment. 180 * 181 * $linktext parameter is only used if the URL does not exist for the comment 182 * author. If the URL does exist then the URL will be used and the $linktext 183 * will be ignored. 184 * 185 * Encapsulate the HTML link between the $before and $after. So it will appear 186 * in the order of $before, link, and finally $after. 184 187 * 185 188 * @since 1.5 … … 203 206 204 207 /** 205 * comment_author_url_link() - Displays the HTML link of the url of the author of the current comment208 * Displays the HTML link of the url of the author of the current comment. 206 209 * 207 210 * @since 0.71 … … 217 220 218 221 /** 219 * get_comment_date() - Retrieve the comment date of the current comment222 * Retrieve the comment date of the current comment. 220 223 * 221 224 * @since 1.5 … … 236 239 237 240 /** 238 * comment_date() - Display the comment date of the current comment241 * Display the comment date of the current comment. 239 242 * 240 243 * @since 0.71 … … 247 250 248 251 /** 249 * get_comment_excerpt() - Retrieve the excerpt of the current comment252 * Retrieve the excerpt of the current comment. 250 253 * 251 254 * Will cut each word and only output the first 20 words with '...' at the end. … … 279 282 280 283 /** 281 * comment_excerpt() - Returns the excerpt of the current comment284 * Display the excerpt of the current comment. 282 285 * 283 286 * @since 1.2 … … 289 292 290 293 /** 291 * get_comment_ID() - Retrieve the comment id of the current comment294 * Retrieve the comment id of the current comment. 292 295 * 293 296 * @since 1.5 … … 303 306 304 307 /** 305 * comment_ID() - Displays the comment id of the current comment308 * Displays the comment id of the current comment. 306 309 * 307 310 * @since 0.71 … … 313 316 314 317 /** 315 * get_comment_link() - Retrieve the link to the current comment318 * Retrieve the link to the current comment. 316 319 * 317 320 * @since 1.5 … … 326 329 327 330 /** 328 * get_comments_link() - Retrieves the link to the current post comments331 * Retrieves the link to the current post comments. 329 332 * 330 333 * @since 1.5 … … 337 340 338 341 /** 339 * comments_link() - Displays the link to the current post comments342 * Displays the link to the current post comments. 340 343 * 341 344 * @since 0.71 … … 349 352 350 353 /** 351 * get_comments_number() - Retrieve the amount of comments a post has354 * Retrieve the amount of comments a post has. 352 355 * 353 356 * @since 1.5 … … 374 377 375 378 /** 376 * comments_number() - Display the language string for the number of comments the current post has379 * Display the language string for the number of comments the current post has. 377 380 * 378 381 * @since 0.71 … … 400 403 401 404 /** 402 * get_comment_text() - Retrieve the text of the current comment405 * Retrieve the text of the current comment. 403 406 * 404 407 * @since 1.5 … … 413 416 414 417 /** 415 * comment_text() - Displays the text of the current comment418 * Displays the text of the current comment. 416 419 * 417 420 * @since 0.71 … … 424 427 425 428 /** 426 * get_comment_time() - Retrieve the comment time of the current comment429 * Retrieve the comment time of the current comment. 427 430 * 428 431 * @since 1.5 … … 445 448 446 449 /** 447 * comment_time() - Display the comment time of the current comment450 * Display the comment time of the current comment. 448 451 * 449 452 * @since 0.71 … … 456 459 457 460 /** 458 * get_comment_type() - Retrieve the comment type of the current comment461 * Retrieve the comment type of the current comment. 459 462 * 460 463 * @since 1.5 … … 474 477 475 478 /** 476 * comment_type() - Display the comment type of the current comment479 * Display the comment type of the current comment. 477 480 * 478 481 * @since 0.71 … … 497 500 498 501 /** 499 * get_trackback_url() - Retrieve The current post's trackback URL500 * 501 * There is a check to see if permalink's have been enabled and if so, will retrieve502 * the pretty path. If permalinks weren't enabled, the ID of the current post is used503 * and appended to the correct page to go to.502 * Retrieve The current post's trackback URL. 503 * 504 * There is a check to see if permalink's have been enabled and if so, will 505 * retrieve the pretty path. If permalinks weren't enabled, the ID of the 506 * current post is used and appended to the correct page to go to. 504 507 * 505 508 * @since 1.5 … … 520 523 521 524 /** 522 * trackback_url() - Displays the current post's trackback URL525 * Displays the current post's trackback URL. 523 526 * 524 527 * @since 0.71 … … 534 537 535 538 /** 536 * trackback_rdf() - Generates and displays the RDF for the trackback information of current post539 * Generates and displays the RDF for the trackback information of current post. 537 540 * 538 541 * @since 0.71 … … 558 561 559 562 /** 560 * comments_open() - Whether the current post is open for comments563 * Whether the current post is open for comments. 561 564 * 562 565 * @since 1.5 … … 575 578 576 579 /** 577 * pings_open() - Whether the current post is open for pings580 * Whether the current post is open for pings. 578 581 * 579 582 * @since 1.5 … … 592 595 593 596 /** 594 * wp_comment_form_unfiltered_html_nonce() - Displays form token for unfiltered comments595 * 596 * Will only display nonce token if the current user has permissions for unfiltered html.597 * Won't display the token for other users.598 * 599 * The function was backported to 2.0.10 and was added to versions 2.1.3 and above. Does not600 * exist in versions prior to 2.0.10 in the 2.0 branch and in the 2.1 branch, prior to 2.1.3.601 * Technically added in 2.2.0.597 * Displays form token for unfiltered comments. 598 * 599 * Will only display nonce token if the current user has permissions for 600 * unfiltered html. Won't display the token for other users. 601 * 602 * The function was backported to 2.0.10 and was added to versions 2.1.3 and 603 * above. Does not exist in versions prior to 2.0.10 in the 2.0 branch and in 604 * the 2.1 branch, prior to 2.1.3. Technically added in 2.2.0. 602 605 * 603 606 * @since 2.0.10 Backported to 2.0 branch … … 612 615 613 616 /** 614 * comments_template() - Loads the comment template specified in $file615 * 616 * Will not display the comments template if not on single post or page, or 617 * ifthe post does not have comments.617 * Loads the comment template specified in $file. 618 * 619 * Will not display the comments template if not on single post or page, or if 620 * the post does not have comments. 618 621 * 619 622 * Uses the WordPress database object to query for the comments. The comments … … 670 673 671 674 /** 672 * comments_popup_script() - Displays the JS popup script to show a comment675 * Displays the JS popup script to show a comment. 673 676 * 674 677 * If the $file parameter is empty, then the home page is assumed. The defaults … … 701 704 702 705 /** 703 * comments_popup_link() - Displays the link to the comments popup window for the current post ID. 704 * 705 * Is not meant to be displayed on single posts and pages. Should be used on the lists of posts 706 * Displays the link to the comments popup window for the current post ID. 707 * 708 * Is not meant to be displayed on single posts and pages. Should be used on the 709 * lists of posts 706 710 * 707 711 * @since 0.71
Note: See TracChangeset
for help on using the changeset viewer.