WordPress.org

Make WordPress Core

Changeset 27990


Ignore:
Timestamp:
04/07/2014 05:58:37 PM (6 years ago)
Author:
nacin
Message:

Avoid stomping of bulk postdata inside the bulk_edit_posts() loop.

props kovshenin.
see [27964], see #27452.

File:
1 edited

Legend:

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

    r27975 r27990  
    483483        $post_data['post_ID'] = $post_ID;
    484484
    485         $post_data = _wp_translate_postdata( true, $post_data );
    486         if ( is_wp_error( $post_data ) ) {
     485        $translated_post_data = _wp_translate_postdata( true, $post_data );
     486        if ( is_wp_error( $translated_post_data ) ) {
    487487            $skipped[] = $post_ID;
    488488            continue;
    489489        }
    490490
    491         $updated[] = wp_update_post( $post_data );
     491        $updated[] = wp_update_post( $translated_post_data );
    492492
    493493        if ( isset( $post_data['sticky'] ) && current_user_can( $ptype->cap->edit_others_posts ) ) {
Note: See TracChangeset for help on using the changeset viewer.