Make WordPress Core


Ignore:
Timestamp:
08/24/2008 06:56:22 AM (17 years ago)
Author:
azaozz
Message:

Reply to comments from admin, first run, see #7435

File:
1 edited

Legend:

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

    r8710 r8720  
    1212$title = __('Edit Comments');
    1313wp_enqueue_script( 'admin-comments' );
    14 wp_enqueue_script('admin-forms');
     14wp_enqueue_script( 'admin-forms' );
     15wp_enqueue_script( 'quicktags' );
    1516
    1617if ( !empty( $_REQUEST['delete_comments'] ) && isset($_REQUEST['action']) ) {
     
    5455require_once('admin-header.php');
    5556
    56 if ( empty($_GET['mode']) )
    57     $mode = 'detail';
    58 else
    59     $mode = attribute_escape($_GET['mode']);
    60 
    61 if ( isset($_GET['comment_status']) )
    62     $comment_status = attribute_escape($_GET['comment_status']);
    63 else
    64     $comment_status = '';
    65 
    66 if ( isset($_GET['s']) )
    67     $search_dirty = $_GET['s'];
    68 else
    69     $search_dirty = '';
     57$mode = ( ! isset($_GET['mode']) || empty($_GET['mode']) ) ? 'detail' : attribute_escape($_GET['mode']);
     58
     59$comment_status = isset($_GET['comment_status']) ? attribute_escape($_GET['comment_status']) : '';
     60
     61$search_dirty = ( isset($_GET['s']) ) ? $_GET['s'] : '';
    7062$search = attribute_escape( $search_dirty );
    7163?>
     
    216208    <th scope="col" class="comment-column"><?php _e('Comment') ?></th>
    217209    <th scope="col" class="author-column"><?php _e('Author') ?></th>
    218     <th scope="col" class="date-column"><?php _e('Comment Submitted') ?></th>
     210    <th scope="col" class="date-column"><?php _e('Submitted') ?></th>
    219211    <th scope="col" class="response-column"><?php _e('In Response To This Post') ?></th>
    220212  </tr>
     
    270262</div>
    271263
    272 <?php include('admin-footer.php'); ?>
     264<?php
     265wp_comment_reply('-1', true, 'detail');
     266include('admin-footer.php'); ?>
Note: See TracChangeset for help on using the changeset viewer.