Ticket #6964: meta_boxes.diff
File meta_boxes.diff, 2.8 KB (added by , 17 years ago) |
---|
-
wp-admin/includes/template.php
1058 1058 function do_meta_boxes($page, $context, $object) { 1059 1059 global $wp_meta_boxes; 1060 1060 1061 do_action('do_meta_boxes', $page, $context, $object); 1062 1061 1063 if ( !isset($wp_meta_boxes) || !isset($wp_meta_boxes[$page]) || !isset($wp_meta_boxes[$page][$context]) ) 1062 1064 return; 1063 1065 … … 1071 1073 } 1072 1074 } 1073 1075 1076 function remove_meta_box($id, $page, $context) { 1077 global $wp_meta_boxes; 1078 1079 if ( !isset($wp_meta_boxes) || !isset($wp_meta_boxes[$page]) || !isset($wp_meta_boxes[$page][$context]) || !isset($wp_meta_boxes[$page][$context][$id]) ) 1080 return; 1081 1082 unset($wp_meta_boxes[$page][$context][$id]); 1083 } 1084 1074 1085 ?> -
wp-admin/edit-form-advanced.php
225 225 <?php echo $form_pingback ?> 226 226 <?php echo $form_prevstatus ?> 227 227 228 < div id="tagsdiv" class="postbox <?php echo postbox_classes('tagsdiv', 'post'); ?>">229 <h3><?php _e('Tags'); ?></h3> 230 <div class="inside">231 <p id="jaxtag"><label class="hidden" for="newtag"><?php _e('Tags'); ?></label><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post _ID ); ?>" /></p>228 <?php 229 function post_tags_meta_box($post) { 230 ?> 231 <p id="jaxtag"><label class="hidden" for="newtag"><?php _e('Tags'); ?></label><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post->ID ); ?>" /></p> 232 232 <div id="tagchecklist"></div> 233 </div> 234 </div> 233 <?php 234 } 235 add_meta_box('tagsdiv', __('Tags'), 'post_tags_meta_box', 'post', 'normal'); 235 236 236 <div id="categorydiv" class="postbox <?php echo postbox_classes('categorydiv', 'post'); ?>"> 237 <h3><?php _e('Categories') ?></h3> 238 <div class="inside"> 239 237 function post_categories_meta_box($post) { 238 ?> 240 239 <div id="category-adder" class="wp-hidden-children"> 241 240 <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4> 242 241 <p id="category-add" class="wp-hidden-child"> … … 261 260 262 261 <div id="categories-all" class="ui-tabs-panel"> 263 262 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 264 <?php wp_category_checklist($post _ID) ?>263 <?php wp_category_checklist($post->ID) ?> 265 264 </ul> 266 265 </div> 266 <?php 267 } 268 add_meta_box('categorydiv', __('Categories'), 'post_categories_meta_box', 'post', 'normal'); 269 ?> 267 270 268 </div>269 </div>270 271 271 <?php do_meta_boxes('post', 'normal', $post); ?> 272 272 273 273 <?php do_action('edit_form_advanced'); ?>