Make WordPress Core


Ignore:
Timestamp:
08/12/2009 10:57:15 AM (17 years ago)
Author:
azaozz
Message:

Fix bulk edit, some cleanup and message fixes for moving in/out of the trash, see #4529

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r11796 r11807  
    237237    }
    238238
     239    if ( -1 == $post_data['_status'] ) {
     240        $post_data['post_status'] = null;
     241        unset($post_data['post_status']);
     242    } else {
     243        $post_data['post_status'] = $post_data['_status'];
     244    }
     245    unset($post_data['_status']);
     246
    239247    $post_IDs = array_map( 'intval', (array) $post_data['post'] );
    240248
     
    299307        $updated[] = wp_update_post( $post_data );
    300308
    301         if ( current_user_can( 'edit_others_posts' ) && isset( $post_data['sticky'] ) ) {
     309        if ( isset( $post_data['sticky'] ) && current_user_can( 'edit_others_posts' ) ) {
    302310            if ( 'sticky' == $post_data['sticky'] )
    303311                stick_post( $post_ID );
Note: See TracChangeset for help on using the changeset viewer.