WordPress.org

Make WordPress Core

Changeset 16445


Ignore:
Timestamp:
11/18/2010 02:22:01 AM (9 years ago)
Author:
nacin
Message:

What you don't know can hurt you. Don't show 'You cannot modify this taxonomy.' props johnjamesjacoby, fixes #14197.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r16438 r16445  
    301301<?php if ( current_user_can($taxonomy->cap->assign_terms) ) : ?>
    302302<p class="hide-if-no-js"><a href="#titlediv" class="tagcloud-link" id="link-<?php echo $tax_name; ?>"><?php echo $taxonomy->labels->choose_from_most_used; ?></a></p>
    303 <?php else : ?>
    304 <p><em><?php _e('You cannot modify this taxonomy.'); ?></em></p>
    305303<?php endif; ?>
    306304<?php
     
    346344            </ul>
    347345        </div>
    348     <?php if ( !current_user_can($tax->cap->assign_terms) ) : ?>
    349     <p><em><?php _e('You cannot modify this taxonomy.'); ?></em></p>
    350     <?php endif; ?>
    351346    <?php if ( current_user_can($tax->cap->edit_terms) ) : ?>
    352347            <div id="<?php echo $taxonomy; ?>-adder" class="wp-hidden-children">
Note: See TracChangeset for help on using the changeset viewer.