Make WordPress Core


Ignore:
Timestamp:
11/29/2010 08:15:04 PM (15 years ago)
Author:
scribu
Message:

Get rid of in favor of . Fixes #15607. See #15580

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r16483 r16617  
    584584    check_ajax_referer( $action );
    585585
    586     $post_ID = (int) $_POST['post_ID'];
    587     if ( !current_user_can( 'edit_post', $post_ID ) )
    588         die('-1');
    589 
    590586    set_current_screen( 'edit-comments' );
    591587
    592588    $wp_list_table = get_list_table('WP_Post_Comments_List_Table');
     589
     590    if ( !current_user_can( 'edit_post', $post_id ) )
     591        die('-1');
    593592
    594593    $wp_list_table->prepare_items();
Note: See TracChangeset for help on using the changeset viewer.