WordPress.org

Make WordPress Core

Changeset 27991


Ignore:
Timestamp:
04/07/2014 07:35:18 PM (6 years ago)
Author:
nacin
Message:

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

Merges [27990] to the 3.8 branch.

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

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

  • branches/3.8/src/wp-admin/includes/post.php

    r27976 r27991  
    461461        $post_data['post_ID'] = $post_ID;
    462462
    463         $post_data = _wp_translate_postdata( true, $post_data );
    464         if ( is_wp_error( $post_data ) ) {
     463        $translated_post_data = _wp_translate_postdata( true, $post_data );
     464        if ( is_wp_error( $translated_post_data ) ) {
    465465            $skipped[] = $post_ID;
    466466            continue;
    467467        }
    468468
    469         $updated[] = wp_update_post( $post_data );
     469        $updated[] = wp_update_post( $translated_post_data );
    470470
    471471        if ( isset( $post_data['sticky'] ) && current_user_can( $ptype->cap->edit_others_posts ) ) {
Note: See TracChangeset for help on using the changeset viewer.