WordPress.org

Make WordPress Core

Ticket #13933: dead-current_user-code.13933.diff

File dead-current_user-code.13933.diff, 472 bytes (added by filosofo, 8 years ago)
  • wp-admin/admin-ajax.php

     
    956956        define( 'DOING_AUTOSAVE', true );
    957957
    958958        $nonce_age = check_ajax_referer( 'autosave', 'autosavenonce' );
    959         global $current_user;
    960959
    961960        $_POST['post_category'] = explode(",", $_POST['catslist']);
    962961        if ( $_POST['post_type'] == 'page' || empty($_POST['post_category']) )