Changeset 10178 for trunk/wp-includes/comment-template.php
- Timestamp:
- 12/10/2008 09:06:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r10169 r10178 1005 1005 echo get_comment_reply_link($args, $comment, $post); 1006 1006 } 1007 1007 1008 /** 1008 1009 * Retrieve HTML content for reply to post link. … … 1018 1019 * 1019 1020 * @param array $args Optional. Override default options. 1020 * @param int $post Optional. Post that the comment is going to be displayed on.1021 * @param int|object $post Optional. Post that the comment is going to be displayed on. Defaults to current post. 1021 1022 * @return string|bool|null Link to show comment form, if successful. False, if comments are closed. 1022 1023 */ 1023 1024 1025 function get_post_comments_link($args = array(), $comment = null, $post = null) { 1024 function get_post_reply_link($args = array(), $post = null) { 1026 1025 global $user_ID; 1027 1026 1028 $defaults = array('add_below' => ' prologue', 'respond_id' => 'respond', 'reply_text' => __('Leave a Comment'),1027 $defaults = array('add_below' => 'comment', 'respond_id' => 'respond', 'reply_text' => __('Leave a Comment'), 1029 1028 'login_text' => __('Log in to leave a Comment'), 'before' => '', 'after' => ''); 1030 1029 … … 1033 1032 $post = get_post($post); 1034 1033 1035 if ( 'open' != $post->comment_status)1034 if ( !comments_open($post->ID) ) 1036 1035 return false; 1037 1036 … … 1047 1046 * Displays the HTML content for reply to post link. 1048 1047 * @since 2.7.0 1049 * @see get_post_ comments_link() Echoes result1048 * @see get_post_reply_link() 1050 1049 * 1051 1050 * @param array $args Optional. Override default options. 1052 * @param int $post Optional. Post that the comment is going to be displayed on.1051 * @param int|object $post Optional. Post that the comment is going to be displayed on. 1053 1052 * @return string|bool|null Link to show comment form, if successful. False, if comments are closed. 1054 1053 */ 1055 function post_ comments_link($args = array(), $post = null) {1054 function post_reply_link($args = array(), $post = null) { 1056 1055 echo get_post_comments_link($args, $post); 1057 1056 }
Note: See TracChangeset
for help on using the changeset viewer.