WordPress.org

Make WordPress Core

Ticket #14197: no-tax.patch

File no-tax.patch, 966 bytes (added by johnjamesjacoby, 5 years ago)

Sorry Captain Planet

  • meta-boxes.php

     
    270270</div> 
    271271<?php if ( current_user_can($taxonomy->cap->assign_terms) ) : ?> 
    272272<p class="hide-if-no-js"><a href="#titlediv" class="tagcloud-link" id="link-<?php echo $tax_name; ?>"><?php echo $help_cloud; ?></a></p> 
    273 <?php else : ?> 
    274 <p><em><?php _e('You cannot modify this taxonomy.'); ?></em></p> 
    275273<?php endif; ?> 
    276274<?php 
    277275} 
     
    315313                                <?php wp_terms_checklist($post->ID, array( 'taxonomy' => $taxonomy, 'popular_cats' => $popular_ids ) ) ?> 
    316314                        </ul> 
    317315                </div> 
    318         <?php if ( !current_user_can($tax->cap->assign_terms) ) : ?> 
    319         <p><em><?php _e('You cannot modify this taxonomy.'); ?></em></p> 
    320         <?php endif; ?> 
    321316        <?php if ( current_user_can($tax->cap->edit_terms) ) : ?> 
    322317                        <div id="<?php echo $taxonomy; ?>-adder" class="wp-hidden-children"> 
    323318                                <h4>