Changeset 14593 for trunk/wp-admin/edit-tags.php
- Timestamp:
- 05/13/2010 04:10:17 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tags.php
r14139 r14593 42 42 check_admin_referer('add-tag'); 43 43 44 if ( !current_user_can($tax-> edit_cap) )44 if ( !current_user_can($tax->cap->edit_terms) ) 45 45 wp_die(__('Cheatin’ uh?')); 46 46 … … 80 80 check_admin_referer('delete-tag_' . $tag_ID); 81 81 82 if ( !current_user_can($tax-> delete_cap) )82 if ( !current_user_can($tax->cap->delete_terms) ) 83 83 wp_die(__('Cheatin’ uh?')); 84 84 … … 94 94 check_admin_referer('bulk-tags'); 95 95 96 if ( !current_user_can($tax-> delete_cap) )96 if ( !current_user_can($tax->cap->delete_terms) ) 97 97 wp_die(__('Cheatin’ uh?')); 98 98 … … 131 131 check_admin_referer('update-tag_' . $tag_ID); 132 132 133 if ( !current_user_can($tax-> edit_cap) )133 if ( !current_user_can($tax->cap->edit_terms) ) 134 134 wp_die(__('Cheatin’ uh?')); 135 135 … … 162 162 163 163 wp_enqueue_script('admin-tags'); 164 if ( current_user_can($tax-> edit_cap) )164 if ( current_user_can($tax->cap->edit_terms) ) 165 165 wp_enqueue_script('inline-edit-tax'); 166 166 … … 319 319 320 320 <?php 321 if ( current_user_can( $tax-> edit_cap) )321 if ( current_user_can( $tax->cap->edit_terms ) ) 322 322 $tag_cloud = wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'echo' => false, 'link' => 'edit' ) ); 323 323 else … … 333 333 endif; 334 334 335 if ( current_user_can($tax-> edit_cap) ) {335 if ( current_user_can($tax->cap->edit_terms) ) { 336 336 if ( 'category' == $taxonomy ) 337 337 do_action('add_category_form_pre', (object)array('parent' => 0) ); // Back compat hook. Deprecated in preference to $taxonomy_pre_add_form
Note: See TracChangeset
for help on using the changeset viewer.