Changeset 22994 for trunk/wp-admin/includes/ajax-actions.php
- Timestamp:
- 12/03/2012 07:17:10 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r22979 r22994 1675 1675 1676 1676 function wp_ajax_set_post_thumbnail() { 1677 $json = ! empty( $_REQUEST['json'] ); 1677 $json = ! empty( $_REQUEST['json'] ); // New-style request 1678 1678 1679 1679 $post_ID = intval( $_POST['post_id'] ); … … 1683 1683 $thumbnail_id = intval( $_POST['thumbnail_id'] ); 1684 1684 1685 check_ajax_referer( "set_post_thumbnail-$post_ID" ); 1685 if ( $json ) 1686 check_ajax_referer( "update-post_$post_ID" ); 1687 else 1688 check_ajax_referer( "set_post_thumbnail-$post_ID" ); 1686 1689 1687 1690 if ( $thumbnail_id == '-1' ) {
Note: See TracChangeset
for help on using the changeset viewer.