Ticket #24096: 24096.diff
File 24096.diff, 1.9 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/class-wp-posts-list-table.php
1025 1025 <?php endif; // 'post' && $can_publish && current_user_can( 'edit_others_cap' ) ?> 1026 1026 1027 1027 </div> 1028 1029 <?php if ( $bulk ) : // post formats bulk edit 1030 $all_post_formats = get_post_format_strings(); 1031 unset( $all_post_formats['standard'] ); 1032 ?> 1033 <div class="inline-edit-group"> 1034 <label class="alignleft" for="post_format"> 1035 <span class="title"><?php _ex( 'Format', 'post format' ); ?></span> 1036 <select name="post_format"> 1037 <option value="-1"><?php _e( '— No Change —' ); ?></option> 1038 <option value="0"><?php _ex( 'Standard', 'Post format' ); ?></option> 1039 <?php foreach ( $all_post_formats as $slug => $format ) : ?> 1040 <option value="<?php echo esc_attr( $slug ); ?>"><?php echo esc_html( $format ); ?></option> 1041 <?php endforeach; ?> 1042 </select></label> 1043 </div> 1044 <?php endif; // $bulk ?> 1045 1028 1046 </div></fieldset> 1029 1047 1030 1048 <?php -
wp-admin/includes/post.php
356 356 } 357 357 } 358 358 359 if ( isset( $post_data['post_format'] ) && '0' == $post_data['post_format'] ) 360 $post_data['post_format'] = false; 361 359 362 $updated = $skipped = $locked = array(); 360 363 foreach ( $post_IDs as $post_ID ) { 361 364 $post_type_object = get_post_type_object( get_post_type( $post_ID ) ); … … 405 408 else 406 409 unstick_post( $post_ID ); 407 410 } 411 412 if ( isset( $post_data['post_format'] ) ) 413 set_post_format( $post_ID, $post_data['post_format'] ); 408 414 } 409 415 410 416 return array( 'updated' => $updated, 'skipped' => $skipped, 'locked' => $locked );