diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index f98d199dbc..f879233af8 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -13,7 +13,7 @@ function post_submit_meta_box($post) { global $action; $post_type = $post->post_type; - $post_type_object = get_post_type_object($post_type); + $post_type_object = get_post_type_object($post_type); $type_cap = $post_type_object->capability_type; $can_publish = current_user_can("publish_${type_cap}s"); ?> @@ -283,19 +283,19 @@ function post_tags_meta_box($post, $box) { */ function post_categories_meta_box( $post, $box ) { $defaults = array('taxonomy' => 'category'); - if ( !isset($box['args']) || !is_array($box['args']) ) - $args = array(); + if ( !isset($box['args']) || !is_array($box['args']) ) + $args = array(); else $args = $box['args']; - extract( wp_parse_args($args, $defaults), EXTR_SKIP ); + extract( wp_parse_args($args, $defaults), EXTR_SKIP ); $tax = get_taxonomy($taxonomy); - ?> -
- - $taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => sprintf( __('— Parent %s —'), $tax->singular_label ), 'tab_index' => 3 ) ); ?> - - - -
-+ + $taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => sprintf( __('— Parent %s —'), $tax->singular_label ), 'tab_index' => 3 ) ); ?> + + + +
+