Make WordPress Core


Ignore:
Timestamp:
09/19/2013 05:46:25 PM (12 years ago)
Author:
helen
Message:

Restore post formats to bulk editing. props azaozz, SergeyBiryukov, DrewAPicture. fixes #24096.

File:
1 edited

Legend:

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

    r25316 r25505  
    325325    $post_IDs = array_map( 'intval', (array) $post_data['post'] );
    326326
    327     $reset = array( 'post_author', 'post_status', 'post_password', 'post_parent', 'page_template', 'comment_status', 'ping_status', 'keep_private', 'tax_input', 'post_category', 'sticky' );
     327    $reset = array(
     328        'post_author', 'post_status', 'post_password',
     329        'post_parent', 'page_template', 'comment_status',
     330        'ping_status', 'keep_private', 'tax_input',
     331        'post_category', 'sticky', 'post_format',
     332    );
     333
    328334    foreach ( $reset as $field ) {
    329335        if ( isset($post_data[$field]) && ( '' == $post_data[$field] || -1 == $post_data[$field] ) )
     
    419425                unstick_post( $post_ID );
    420426        }
     427
     428        if ( isset( $post_data['post_format'] ) )
     429            set_post_format( $post_ID, $post_data['post_format'] );
    421430    }
    422431
Note: See TracChangeset for help on using the changeset viewer.