Changeset 19013 for trunk/wp-admin/edit-form-advanced.php
- Timestamp:
- 10/19/2011 09:43:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r18941 r19013 100 100 require_once('./includes/meta-boxes.php'); 101 101 102 add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', $post_type, 'side', 'core');102 add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', null, 'side', 'core'); 103 103 104 104 if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post_type, 'post-formats' ) ) 105 add_meta_box( 'formatdiv', _x( 'Format', 'post format' ), 'post_format_meta_box', $post_type, 'side', 'core' );105 add_meta_box( 'formatdiv', _x( 'Format', 'post format' ), 'post_format_meta_box', null, 'side', 'core' ); 106 106 107 107 // all taxonomies … … 114 114 115 115 if ( !is_taxonomy_hierarchical($tax_name) ) 116 add_meta_box('tagsdiv-' . $tax_name, $label, 'post_tags_meta_box', $post_type, 'side', 'core', array( 'taxonomy' => $tax_name ));116 add_meta_box('tagsdiv-' . $tax_name, $label, 'post_tags_meta_box', null, 'side', 'core', array( 'taxonomy' => $tax_name )); 117 117 else 118 add_meta_box($tax_name . 'div', $label, 'post_categories_meta_box', $post_type, 'side', 'core', array( 'taxonomy' => $tax_name ));118 add_meta_box($tax_name . 'div', $label, 'post_categories_meta_box', null, 'side', 'core', array( 'taxonomy' => $tax_name )); 119 119 } 120 120 121 121 if ( post_type_supports($post_type, 'page-attributes') ) 122 add_meta_box('pageparentdiv', 'page' == $post_type ? __('Page Attributes') : __('Attributes'), 'page_attributes_meta_box', $post_type, 'side', 'core');122 add_meta_box('pageparentdiv', 'page' == $post_type ? __('Page Attributes') : __('Attributes'), 'page_attributes_meta_box', null, 'side', 'core'); 123 123 124 124 if ( current_theme_supports( 'post-thumbnails', $post_type ) && post_type_supports( $post_type, 'thumbnail' ) ) 125 add_meta_box('postimagediv', __('Featured Image'), 'post_thumbnail_meta_box', $post_type, 'side', 'low');125 add_meta_box('postimagediv', __('Featured Image'), 'post_thumbnail_meta_box', null, 'side', 'low'); 126 126 127 127 if ( post_type_supports($post_type, 'excerpt') ) 128 add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', $post_type, 'normal', 'core');128 add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', null, 'normal', 'core'); 129 129 130 130 if ( post_type_supports($post_type, 'trackbacks') ) 131 add_meta_box('trackbacksdiv', __('Send Trackbacks'), 'post_trackback_meta_box', $post_type, 'normal', 'core');131 add_meta_box('trackbacksdiv', __('Send Trackbacks'), 'post_trackback_meta_box', null, 'normal', 'core'); 132 132 133 133 if ( post_type_supports($post_type, 'custom-fields') ) 134 add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', $post_type, 'normal', 'core');134 add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', null, 'normal', 'core'); 135 135 136 136 do_action('dbx_post_advanced'); 137 137 if ( post_type_supports($post_type, 'comments') ) 138 add_meta_box('commentstatusdiv', __('Discussion'), 'post_comment_status_meta_box', $post_type, 'normal', 'core');138 add_meta_box('commentstatusdiv', __('Discussion'), 'post_comment_status_meta_box', null, 'normal', 'core'); 139 139 140 140 if ( ('publish' == $post->post_status || 'private' == $post->post_status) && post_type_supports($post_type, 'comments') ) 141 add_meta_box('commentsdiv', __('Comments'), 'post_comment_meta_box', $post_type, 'normal', 'core');141 add_meta_box('commentsdiv', __('Comments'), 'post_comment_meta_box', null, 'normal', 'core'); 142 142 143 143 if ( !( 'pending' == $post->post_status && !current_user_can( $post_type_object->cap->publish_posts ) ) ) 144 add_meta_box('slugdiv', __('Slug'), 'post_slug_meta_box', $post_type, 'normal', 'core');144 add_meta_box('slugdiv', __('Slug'), 'post_slug_meta_box', null, 'normal', 'core'); 145 145 146 146 if ( post_type_supports($post_type, 'author') ) { 147 147 if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) 148 add_meta_box('authordiv', __('Author'), 'post_author_meta_box', $post_type, 'normal', 'core');148 add_meta_box('authordiv', __('Author'), 'post_author_meta_box', null, 'normal', 'core'); 149 149 } 150 150 151 151 if ( post_type_supports($post_type, 'revisions') && 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) 152 add_meta_box('revisionsdiv', __('Revisions'), 'post_revisions_meta_box', $post_type, 'normal', 'core');152 add_meta_box('revisionsdiv', __('Revisions'), 'post_revisions_meta_box', null, 'normal', 'core'); 153 153 154 154 do_action('add_meta_boxes', $post_type, $post); … … 348 348 } 349 349 350 do_meta_boxes( $post_type, 'normal', $post);350 do_meta_boxes(null, 'normal', $post); 351 351 352 352 ( 'page' == $post_type ) ? do_action('edit_page_form') : do_action('edit_form_advanced'); 353 353 354 do_meta_boxes( $post_type, 'advanced', $post);354 do_meta_boxes(null, 'advanced', $post); 355 355 356 356 do_action('dbx_post_sidebar'); ?>
Note: See TracChangeset
for help on using the changeset viewer.