Changeset 32567
- Timestamp:
- 05/24/2015 05:18:59 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r32511 r32567 64 64 * @param int $comment_ID The comment ID. 65 65 */ 66 $author = apply_filters( 'comment_author', $author, $comment_ID ); 67 echo $author; 66 echo apply_filters( 'comment_author', $author, $comment_ID ); 68 67 } 69 68 … … 158 157 * @param string $before Optional. Text or HTML to display before the email link. Default empty. 159 158 * @param string $after Optional. Text or HTML to display after the email link. Default empty. 159 * @return string 160 160 */ 161 161 function get_comment_author_email_link( $linktext = '', $before = '', $after = '' ) { … … 226 226 * @since 0.71 227 227 * 228 * @see get_comment_author_link() Echoes result229 *230 228 * @param int $comment_ID ID of the comment for which to print the author's 231 229 * link. Default current comment. … … 391 389 * @param bool $echo Optional. Whether to cho or return the output. 392 390 * Default true. 391 * @return string|null 393 392 */ 394 393 function comment_class( $class = '', $comment_id = null, $post_id = null, $echo = true ) { … … 405 404 * 406 405 * @since 2.7.0 406 * 407 * @global int $comment_alt 408 * @global int $comment_depth 409 * @global int $comment_thread_alt 407 410 * 408 411 * @param string|array $class Optional. One or more classes to add to the class list. Default empty. … … 596 599 * @since 1.5.0 597 600 * 601 * @global object $comment 602 * 598 603 * @return int The comment ID. 599 604 */ … … 628 633 * 629 634 * @see get_page_of_comment() 635 * 636 * @global WP_Rewrite $wp_rewrite 637 * @global bool $in_comment_loop 630 638 * 631 639 * @param mixed $comment Comment to retrieve. Default current comment. … … 857 865 * 858 866 * @since 1.5.0 867 * 868 * @global object $comment 859 869 * 860 870 * @param string $d Optional. The format of the time. Default user's settings. … … 1116 1126 * halted. It is advised for that reason, that the default theme is not deleted. 1117 1127 * 1118 * @todo Document globals1119 1128 * @uses $withcomments Will not try to get the comments if the post has none. 1120 1129 * 1121 1130 * @since 1.5.0 1131 * 1132 * @global WP_Query $wp_query 1133 * @global WP_Post $post 1134 * @global wpdb $wpdb 1135 * @global int $id 1136 * @global object $comment 1137 * @global string $user_login 1138 * @global int $user_ID 1139 * @global string $user_identity 1140 * @global bool $overridden_cpage 1122 1141 * 1123 1142 * @param string $file Optional. The file to load. Default '/comments.php'. … … 1371 1390 */ 1372 1391 function get_comment_reply_link( $args = array(), $comment = null, $post = null ) { 1373 1374 1392 $defaults = array( 1375 1393 'add_below' => 'comment', … … 1551 1569 * 1552 1570 * @param string $text Optional. Text to display for cancel reply link. Default empty. 1571 * @return string 1553 1572 */ 1554 1573 function get_cancel_comment_reply_link( $text = '' ) { … … 1628 1647 * 1629 1648 * @since 2.7.0 1649 * 1650 * @global object $comment 1630 1651 * 1631 1652 * @param string $noreplytext Optional. Text to display when not replying to a comment. … … 1687 1708 * 1688 1709 * @since 2.7.0 1710 * 1711 * @global int $comment_depth 1689 1712 * 1690 1713 * @param string $output Passed by reference. Used to append additional content. … … 1715 1738 * @since 2.7.0 1716 1739 * 1740 * @global int $comment_depth 1741 * 1717 1742 * @param string $output Passed by reference. Used to append additional content. 1718 1743 * @param int $depth Depth of comment. … … 1795 1820 * @see Walker::start_el() 1796 1821 * @see wp_list_comments() 1822 * 1823 * @global int $comment_depth 1824 * @global object $comment 1797 1825 * 1798 1826 * @param string $output Passed by reference. Used to append additional content. … … 1998 2026 * 1999 2027 * @see WP_Query->comments 2028 * 2029 * @global WP_Query $wp_query 2030 * @global int $comment_alt 2031 * @global int $comment_depth 2032 * @global int $comment_thread_alt 2033 * @global bool $overridden_cpage 2034 * @global bool $in_comment_loop 2000 2035 * 2001 2036 * @param string|array $args {
Note: See TracChangeset
for help on using the changeset viewer.