Changeset 23058 for trunk/wp-admin/includes/ajax-actions.php
- Timestamp:
- 12/05/2012 02:34:00 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r23032 r23058 1678 1678 1679 1679 $post_ID = intval( $_POST['post_id'] ); 1680 if ( ! current_user_can( 'edit_post', $post_ID ) ) {1681 $json ? wp_send_json_error() :wp_die( -1 );1682 } 1680 if ( ! current_user_can( 'edit_post', $post_ID ) ) 1681 wp_die( -1 ); 1682 1683 1683 $thumbnail_id = intval( $_POST['thumbnail_id'] ); 1684 1684 … … 1693 1693 $json ? wp_send_json_success( $return ) : wp_die( $return ); 1694 1694 } else { 1695 $json ? wp_send_json_error() :wp_die( 0 );1695 wp_die( 0 ); 1696 1696 } 1697 1697 } … … 1702 1702 } 1703 1703 1704 $json ? wp_send_json_error() :wp_die( 0 );1704 wp_die( 0 ); 1705 1705 } 1706 1706
Note: See TracChangeset
for help on using the changeset viewer.