Changeset 33963 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 09/09/2015 02:50:43 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r33962 r33963 153 153 * address and use it for their own means good and bad. 154 154 * 155 * @global object $comment The current Comment row object.156 *157 155 * @since 2.7.0 158 156 * … … 164 162 */ 165 163 function get_comment_author_email_link( $linktext = '', $before = '', $after = '' ) { 166 global $comment; 167 164 $comment = get_comment(); 168 165 /** 169 166 * Filter the comment author's email for display. … … 605 602 * @since 1.5.0 606 603 * 607 * @global object $comment608 *609 604 * @return int The comment ID. 610 605 */ 611 606 function get_comment_ID() { 612 global $comment;607 $comment = get_comment(); 613 608 614 609 /** … … 874 869 * @since 1.5.0 875 870 * 876 * @global object $comment877 *878 871 * @param string $d Optional. The format of the time. Default user's settings. 879 872 * @param bool $gmt Optional. Whether to use the GMT date. Default false. … … 883 876 */ 884 877 function get_comment_time( $d = '', $gmt = false, $translate = true ) { 885 global $comment; 878 $comment = get_comment(); 879 886 880 $comment_date = $gmt ? $comment->comment_date_gmt : $comment->comment_date; 887 881 if ( '' == $d ) … … 1654 1648 * @since 2.7.0 1655 1649 * 1656 * @global object $comment1657 *1658 1650 * @param string $noreplytext Optional. Text to display when not replying to a comment. 1659 1651 * Default false. … … 1665 1657 */ 1666 1658 function comment_form_title( $noreplytext = false, $replytext = false, $linktoparent = true ) { 1667 global $comment;1659 $comment = get_comment(); 1668 1660 1669 1661 if ( false === $noreplytext ) $noreplytext = __( 'Leave a Reply' );
Note: See TracChangeset
for help on using the changeset viewer.