Changeset 11204 for trunk/wp-admin/edit-form-comment.php
- Timestamp:
- 05/05/2009 07:43:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-comment.php
r11127 r11204 13 13 $toprow_title = sprintf(__('Editing Comment # %s'), $comment->comment_ID); 14 14 $form_action = 'editedcomment'; 15 $form_extra = "' />\n<input type='hidden' name='comment_ID' value='" . attr($comment->comment_ID) . "' />\n<input type='hidden' name='comment_post_ID' value='" .attr($comment->comment_post_ID);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 16 ?> 17 17 … … 27 27 <?php 28 28 29 $email = attr( $comment->comment_author_email );30 $url = attr( $comment->comment_author_url );29 $email = esc_attr( $comment->comment_author_email ); 30 $url = esc_attr( $comment->comment_author_url ); 31 31 // add_meta_box('submitdiv', __('Save'), 'comment_submit_meta_box', 'comment', 'side', 'core'); 32 32 ?> … … 73 73 </div> 74 74 <div id="publishing-action"> 75 <input type="submit" name="save" value="<?php _ea('Update Comment'); ?>" tabindex="4" class="button-primary" />75 <input type="submit" name="save" value="<?php esc_attr_e('Update Comment'); ?>" tabindex="4" class="button-primary" /> 76 76 </div> 77 77 <div class="clear"></div> … … 91 91 <tr valign="top"> 92 92 <td class="first"><?php _e( 'Name:' ); ?></td> 93 <td><input type="text" name="newcomment_author" size="30" value="<?php echo attr( $comment->comment_author ); ?>" tabindex="1" id="name" /></td>93 <td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" tabindex="1" id="name" /></td> 94 94 </tr> 95 95 <tr valign="top"> … … 102 102 } 103 103 ?></td> 104 <td><input type="text" name="newcomment_author_email" size="30" value="<?php echo attr($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> 105 105 </tr> 106 106 <tr valign="top"> … … 114 114 _e( 'URL:' ); 115 115 } ?></td> 116 <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo attr($url); ?>" tabindex="3" /></td>116 <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($url); ?>" tabindex="3" /></td> 117 117 </tr> 118 118 </tbody> … … 129 129 <?php do_meta_boxes('comment', 'normal', $comment); ?> 130 130 131 <input type="hidden" name="c" value="<?php echo attr($comment->comment_ID) ?>" />132 <input type="hidden" name="p" value="<?php echo attr($comment->comment_post_ID) ?>" />131 <input type="hidden" name="c" value="<?php echo esc_attr($comment->comment_ID) ?>" /> 132 <input type="hidden" name="p" value="<?php echo esc_attr($comment->comment_post_ID) ?>" /> 133 133 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" /> 134 134 <?php wp_original_referer_field(true, 'previous'); ?>
Note: See TracChangeset
for help on using the changeset viewer.