Ticket #26948: 26948-inline-save.patch
File 26948-inline-save.patch, 991 bytes (added by , 10 years ago) |
---|
-
wp-includes/post.php
3391 3391 wp_set_post_tags( $post_ID, $postarr['tags_input'] ); 3392 3392 } 3393 3393 3394 $doing_inline_save = ( defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $_POST['action'] ) && 'inline-save' == $_POST['action'] ); 3395 3394 3396 // New-style support for all custom taxonomies. 3395 3397 if ( ! empty( $postarr['tax_input'] ) ) { 3396 3398 foreach ( $postarr['tax_input'] as $taxonomy => $tags ) { 3397 3399 $taxonomy_obj = get_taxonomy($taxonomy); 3400 if ( ! $taxonomy_obj || ! is_object_in_taxonomy( $post_type, $taxonomy ) ) { 3401 continue; 3402 } 3403 3404 if ( $doing_inline_save && ! apply_filters( 'quick_edit_show_taxonomy', $taxonomy_obj->show_in_quick_edit, $taxonomy, $post_type ) ) { 3405 continue; 3406 } 3398 3407 // array = hierarchical, string = non-hierarchical. 3399 3408 if ( is_array( $tags ) ) { 3400 3409 $tags = array_filter($tags);