Make WordPress Core

Ticket #20003: 20003.diff

File 20003.diff, 573 bytes (added by batmoo, 13 years ago)
  • wp-admin/includes/ajax-actions.php

     
    15301530}
    15311531
    15321532function wp_ajax_set_post_thumbnail() {
     1533        global $post_ID;
    15331534        $post_ID = intval( $_POST['post_id'] );
    15341535        if ( !current_user_can( 'edit_post', $post_ID ) )
    15351536                wp_die( -1 );
     
    16431644
    16441645        update_user_meta( get_current_user_id(), 'dismissed_wp_pointers', $dismissed );
    16451646        wp_die( 1 );
    1646 }
    1647  No newline at end of file
     1647}