Changes from branches/2.8/wp-admin/edit-form-comment.php at r11728 to trunk/wp-admin/edit-form-comment.php at r11383
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-comment.php
r11728 r11383 14 14 $form_action = 'editedcomment'; 15 15 $form_extra = "' />\n<input type='hidden' name='comment_ID' value='" . esc_attr($comment->comment_ID) . "' />\n<input type='hidden' name='comment_post_ID' value='" . esc_attr($comment->comment_post_ID); 16 $comment->comment_author_email = esc_attr($comment->comment_author_email);17 16 ?> 18 17 … … 26 25 <input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" /> 27 26 <input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' /> 27 <?php 28 29 $email = esc_attr( $comment->comment_author_email ); 30 $url = esc_attr( $comment->comment_author_url ); 31 // add_meta_box('submitdiv', __('Save'), 'comment_submit_meta_box', 'comment', 'side', 'core'); 32 ?> 28 33 29 34 <div id="side-info-column" class="inner-sidebar"> … … 91 96 <td class="first"> 92 97 <?php 93 if ( $ comment->comment_author_email ) {98 if ( $email ) { 94 99 printf( __( 'E-mail (%s):' ), get_comment_author_email_link( __( 'send e-mail' ), '', '' ) ); 95 100 } else { … … 97 102 } 98 103 ?></td> 99 <td><input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" tabindex="2" id="email" /></td>104 <td><input type="text" name="newcomment_author_email" size="30" value="<?php echo esc_attr($email); ?>" tabindex="2" id="email" /></td> 100 105 </tr> 101 106 <tr valign="top"> 102 107 <td class="first"> 103 108 <?php 104 if ( ! empty( $comment->comment_author_url ) && 'http://' != $comment->comment_author_url ) { 105 $link = '<a href="' . $comment->comment_author_url . '" rel="external nofollow" target="_blank">' . __('visit site') . '</a>'; 109 $url = get_comment_author_url(); 110 if ( ! empty( $url ) && 'http://' != $url ) { 111 $link = "<a href='$url' rel='external nofollow' target='_blank'>" . __('visit site') . "</a>"; 106 112 printf( __( 'URL (%s):' ), apply_filters('get_comment_author_link', $link ) ); 107 113 } else {
Note: See TracChangeset
for help on using the changeset viewer.