Make WordPress Core


Ignore:
Timestamp:
03/18/2013 05:24:24 PM (12 years ago)
Author:
ryan
Message:

Don't allow changing the post format from quick edit and bulk edit. These do not have sufficient context to set the post format.

Props kovshenin
fixes #23426

File:
1 edited

Legend:

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

    r23735 r23742  
    353353    }
    354354
    355     if ( isset( $post_data['post_format'] ) ) {
    356         if ( '0' == $post_data['post_format'] )
    357             $post_data['post_format'] = false;
    358         // don't change the post format if it's not supported or not '0' (standard)
    359         elseif ( ! current_theme_supports( 'post-formats', $post_data['post_format'] ) )
    360             unset( $post_data['post_format'] );
    361     }
    362 
    363355    $updated = $skipped = $locked = array();
    364356    foreach ( $post_IDs as $post_ID ) {
     
    410402                unstick_post( $post_ID );
    411403        }
    412 
    413         if ( isset( $post_data['post_format'] ) )
    414             set_post_format( $post_ID, $post_data['post_format'] );
    415404    }
    416405
Note: See TracChangeset for help on using the changeset viewer.