Make WordPress Core


Ignore:
Timestamp:
11/20/2008 04:51:47 AM (17 years ago)
Author:
markjaquith
Message:

Repoint and redirect edit.php?p=X to edit-comments.php?p=X

File:
1 edited

Legend:

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

    r9799 r9807  
    1010require_once('admin.php');
    1111
    12 $title = __('Edit Comments');
    1312wp_enqueue_script('admin-comments');
    1413enqueue_comment_hotkeys_js();
     
    6867}
    6968
     69$post_id = isset($_GET['p']) ? (int) $_GET['p'] : 0;
     70
     71if ( $post_id )
     72    $title = sprintf(__('Edit Comments on “%s”'), wp_html_excerpt(_draft_or_post_title($post_id), 50));
     73else
     74    $title = __('Edit Comments');
     75
    7076require_once('admin-header.php');
    7177
     
    7581
    7682$comment_type = !empty($_GET['comment_type']) ? attribute_escape($_GET['comment_type']) : '';
    77 
    78 $post_id = isset($_GET['p']) ? (int) $_GET['p'] : 0;
    7983
    8084$search_dirty = ( isset($_GET['s']) ) ? $_GET['s'] : '';
Note: See TracChangeset for help on using the changeset viewer.