Changeset 12967 for trunk/wp-admin/includes/meta-boxes.php
- Timestamp:
- 02/05/2010 02:33:29 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/meta-boxes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r12833 r12967 240 240 $tax_name = esc_attr(substr($box['id'], 8)); 241 241 $taxonomy = get_taxonomy($tax_name); 242 if ( !current_user_can($taxonomy->manage_cap) ) 242 if ( !current_user_can($taxonomy->manage_cap) ) // @todo: Display the terms, do not edit. 243 243 return; 244 244 $helps = isset($taxonomy->helps) ? esc_attr($taxonomy->helps) : __('Separate tags with commas.'); … … 280 280 $tax = get_taxonomy($taxonomy); 281 281 282 if ( !current_user_can($tax->manage_cap) )283 return;284 282 ?> 285 283 <div id="taxonomy-<?php echo $taxonomy; ?>" class="categorydiv"> … … 297 295 <div id="<?php echo $taxonomy; ?>-all" class="tabs-panel"> 298 296 <ul id="<?php echo $taxonomy; ?>checklist" class="list:<?php echo $taxonomy?> categorychecklist form-no-clear"> 299 <?php wp_terms_checklist($post->ID, array( 'taxonomy'=>$taxonomy, 'popular_cats'=> $popular_ids)) ?>297 <?php wp_terms_checklist($post->ID, array( 'taxonomy' => $taxonomy, 'popular_cats' => $popular_ids ) ) ?> 300 298 </ul> 301 299 </div>
Note: See TracChangeset
for help on using the changeset viewer.