Changeset 9425 for trunk/wp-admin/edit-form-comment.php
- Timestamp:
- 10/31/2008 03:31:06 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-form-comment.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-comment.php
r9384 r9425 25 25 <input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' /> 26 26 <?php 27 // All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action).28 29 /**30 * Display comment edit meta box.31 *32 * Not used, but keeping for a bit longer in case it's needed.33 *34 * @since 2.7.035 *36 * @param object $comment Comment data.37 */38 function comment_submit_meta_box($comment) {39 ?>40 <div class="submitbox" id="submitcomment">41 <div class="inside-submitbox">42 43 <p><strong><?php _e('Approval Status') ?></strong></p>44 <p id='comment-status-radio'>45 <label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _e('Approved') ?></label>46 <label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _e('Awaiting Moderation') ?></label>47 <label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _e('Spam') ?></label>48 </p>49 50 <div class="insidebox" id="deletebutton">51 <?php52 echo "<a class='submitdelete' href='" . wp_nonce_url("comment.php?action=deletecomment&c=$comment->comment_ID&_wp_original_http_referer=" . wp_get_referer(), 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Delete comment') . "</a>"; ?>53 </div>54 55 <?php56 $stamp = __('%1$s at %2$s');57 $date = mysql2date(get_option('date_format'), $comment->comment_date);58 $time = mysql2date(get_option('time_format'), $comment->comment_date);59 ?>60 <div class="insidebox curtime"><span id="timestamp"><?php printf($stamp, $date, $time); ?></span>61 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>62 <div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0, 5); ?></div></div>63 64 </div>65 66 <p class="submit">67 <input type="submit" name="save" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" />68 <a class="preview button" href="<?php echo get_comment_link(); ?>" target="_blank"><?php _e('View Comment'); ?></a>69 </p>70 </div>71 <?php72 }73 27 74 28 $email = attribute_escape( $comment->comment_author_email ); … … 117 71 </div> 118 72 119 <div id="post-body" class=" <?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>">73 <div id="post-body" class="has-sidebar"> 120 74 <div id="post-body-content" class="has-sidebar-content"> 121 75
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)