Changeset 23352 for trunk/wp-admin/includes/template.php
- Timestamp:
- 01/28/2013 03:23:01 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r23351 r23352 177 177 178 178 $tax = get_taxonomy($taxonomy); 179 if ( ! current_user_can($tax->cap->assign_terms) )180 $disabled = 'disabled="disabled"';181 else182 $disabled = '';183 179 184 180 $popular_ids = array(); … … 193 189 <li id="<?php echo $id; ?>" class="popular-category"> 194 190 <label class="selectit"> 195 <input id="in-<?php echo $id; ?>" type="checkbox" <?php echo $checked; ?> value="<?php echo (int) $term->term_id; ?>" <?php echo $disabled ?>/>191 <input id="in-<?php echo $id; ?>" type="checkbox" <?php echo $checked; ?> value="<?php echo (int) $term->term_id; ?>" <?php disabled( ! current_user_can( $tax->cap->assign_terms ) ); ?> /> 196 192 <?php echo esc_html( apply_filters( 'the_category', $term->name ) ); ?> 197 193 </label>
Note: See TracChangeset
for help on using the changeset viewer.