Changeset 28083 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 04/12/2014 12:00:32 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r27943 r28083 519 519 } 520 520 $excerpt .= ($use_dotdotdot) ? '…' : ''; 521 return apply_filters('get_comment_excerpt', $excerpt); 521 522 /** 523 * Filter the retrieved comment excerpt. 524 * 525 * @since 1.5.0 526 * 527 * @param string $excerpt The comment excerpt text. 528 */ 529 return apply_filters( 'get_comment_excerpt', $excerpt ); 522 530 } 523 531 … … 642 650 * Filter the returned post comments permalink. 643 651 * 644 * @since 652 * @since 3.6.0 645 653 * 646 654 * @param string $comments_link Post comments permalink with '#comments' appended. … … 977 985 * Filter whether the current post is open for comments. 978 986 * 979 * @since 987 * @since 2.5.0 980 988 * 981 989 * @param bool $open Whether the current post is open for comments. … … 998 1006 999 1007 $open = ( 'open' == $_post->ping_status ); 1008 1009 /** 1010 * Filter whether the current post is open for pings. 1011 * 1012 * @since 2.5.0 1013 * 1014 * @param bool $open Whether the current post is open for pings. 1015 * @param int|WP_Post $post_id The post ID or WP_Post object. 1016 */ 1000 1017 return apply_filters( 'pings_open', $open, $post_id ); 1001 1018 } … … 2056 2073 'fields' => $fields, 2057 2074 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>', 2075 /** This filter is documented in wp-includes/link-template.php */ 2058 2076 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 2077 /** This filter is documented in wp-includes/link-template.php */ 2059 2078 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 2060 2079 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>',
Note: See TracChangeset
for help on using the changeset viewer.