Make WordPress Core

Changeset 9425


Ignore:
Timestamp:
10/31/2008 03:31:06 AM (15 years ago)
Author:
azaozz
Message:

Edit comment page fix

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-comment.php

    r9384 r9425  
    2525<input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' />
    2626<?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.0
    35  *
    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 <?php
    52 echo "<a class='submitdelete' href='" . wp_nonce_url("comment.php?action=deletecomment&amp;c=$comment->comment_ID&amp;_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 <?php
    56 $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 &nbsp;<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 <?php
    72 }
    7327
    7428$email = attribute_escape( $comment->comment_author_email );
     
    11771</div>
    11872
    119 <div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>">
     73<div id="post-body" class="has-sidebar">
    12074<div id="post-body-content" class="has-sidebar-content">
    12175
  • trunk/wp-admin/js/comment.js

    r8913 r9425  
    11jQuery(document).ready( function($) {
    2     postboxes.add_postbox_toggles('comment');
     2//  postboxes.add_postbox_toggles('comment');
    33
    44    // close postboxes that should be closed
    5     jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');
     5//  jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');
    66
    77    // show things that should be visible, hide what should be hidden
  • trunk/wp-includes/script-loader.php

    r9421 r9425  
    202202        ) );
    203203        $scripts->add( 'link', '/wp-admin/js/link.js', array('jquery-ui-tabs', 'wp-lists', 'postbox', 'settings-box'), '20080925' );
    204         $scripts->add( 'comment', '/wp-admin/js/comment.js', array('postbox'), '20080219' );
     204        $scripts->add( 'comment', '/wp-admin/js/comment.js', array('jquery'), '20080219' );
    205205        $scripts->localize( 'comment', 'commentL10n', array(
    206206            'cancel' => __('Cancel'),
Note: See TracChangeset for help on using the changeset viewer.