Changeset 25438 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 09/14/2013 06:35:43 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/ajax-actions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r25433 r25438 696 696 check_ajax_referer( $action ); 697 697 698 if ( empty( $post_id ) && ! empty( $_REQUEST['p'] ) ) { 699 $id = absint( $_REQUEST['p'] ); 700 if ( ! empty( $id ) ) 701 $post_id = $id; 702 } 703 704 if ( empty( $post_id ) ) 705 wp_die( -1 ); 706 698 707 $wp_list_table = _get_list_table( 'WP_Post_Comments_List_Table', array( 'screen' => 'edit-comments' ) ); 699 708 700 if ( ! current_user_can( 'edit_post', $post_id ) )709 if ( ! current_user_can( 'edit_post', $post_id ) ) 701 710 wp_die( -1 ); 702 711 … … 841 850 842 851 $comment = get_comment( $comment_id ); 852 if ( empty( $comment->comment_ID ) ) 853 wp_die( -1 ); 843 854 844 855 ob_start();
Note: See TracChangeset
for help on using the changeset viewer.