X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/8f374b7233bc2815ccc387e448d208c5434eb961..6c8f14c09105d0afa4c1574215c59b5021040e76:/wp-admin/includes/meta-boxes.php?ds=sidebyside diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 7dc45528..2b0b2864 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -28,11 +28,11 @@ function post_submit_meta_box($post) {
-
+labels->separate_items_with_commas ); ?>
@@ -320,8 +384,8 @@ function post_categories_meta_box( $post, $box ) { ?>- + - $taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —', 'tab_index' => 3 ) ); ?> - + $taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —' ) ); ?> +
@@ -375,7 +439,7 @@ function post_categories_meta_box( $post, $box ) { */ function post_excerpt_meta_box($post) { ?> - +Learn more about manual excerpts.'); ?>
to_ping) ) .'" />'; + $form_trackback = 'to_ping) ) .'" />'; if ('' != $post->pinged) { $pings = ''. __('Already pinged:') . '
' . __('No comments yet.') . '
'; } else { - $hidden = get_hidden_meta_boxes('post'); + $hidden = get_hidden_meta_boxes( get_current_screen() ); if ( ! in_array('commentsdiv', $hidden) ) { ?> - - + + @@ -638,9 +702,9 @@ if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('m- +
@@ -912,8 +976,7 @@ function link_advanced_meta_box($link) { * * @since 2.9.0 */ -function post_thumbnail_meta_box() { - global $post; +function post_thumbnail_meta_box( $post ) { $thumbnail_id = get_post_meta( $post->ID, '_thumbnail_id', true ); - echo _wp_post_thumbnail_html( $thumbnail_id ); -} + echo _wp_post_thumbnail_html( $thumbnail_id, $post->ID ); +} \ No newline at end of file