| | 178 | <th scope="row"><?php _e('In Response To'); ?></th> |
| | 179 | <td> |
| | 180 | <?php |
| | 181 | $post_id = $comment->comment_post_ID; |
| | 182 | if ( current_user_can( 'edit_post', $post_id ) ) { |
| | 183 | $post_link = "<a href='" . esc_url( get_edit_post_link( $post_id ) ) . "'>"; |
| | 184 | $post_link .= esc_html( get_the_title( $post_id ) ) . '</a>'; |
| | 185 | } else { |
| | 186 | $post_link = esc_html( get_the_title( $post_id ) ); |
| | 187 | } |
| | 188 | echo $post_link; |
| | 189 | ?> |
| | 190 | </td> |
| | 191 | </tr> |
| | 192 | <tr> |
| | 193 | <th scope="row"><?php _e('Submitted on'); ?></th> |
| | 194 | <td> |
| | 195 | <?php |
| | 196 | /* translators: 2: comment date, 3: comment time */ |
| | 197 | printf( __( '<a href="%1$s">%2$s at %3$s</a>' ), $comment_url, |
| | 198 | /* translators: comment date format. See http://php.net/date */ |
| | 199 | get_comment_date( __( 'Y/m/d' ) ), |
| | 200 | get_comment_date( get_option( 'time_format' ) ) |
| | 201 | ); |
| | 202 | if ( $comment->comment_parent ) { |
| | 203 | $comment_url = esc_url( get_comment_link( $comment->comment_ID ) ); |
| | 204 | $parent = get_comment( $comment->comment_parent ); |
| | 205 | $parent_link = esc_url( get_comment_link( $comment->comment_parent ) ); |
| | 206 | $name = get_comment_author( $parent->comment_ID ); |
| | 207 | printf( ' | '.__( 'In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name ); |
| | 208 | } |
| | 209 | ?> |
| | 210 | </td> |
| | 211 | </tr> |
| | 212 | <tr> |