Changeset 14588 for trunk/wp-admin/edit.php
- Timestamp:
- 05/12/2010 09:03:33 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r14585 r14588 141 141 142 142 $user_posts = false; 143 if ( !current_user_can($post_type_object->cap->edit_other _posts) ) {143 if ( !current_user_can($post_type_object->cap->edit_others_posts) ) { 144 144 $user_posts_count = $wpdb->get_var( $wpdb->prepare("SELECT COUNT(1) FROM $wpdb->posts WHERE post_type = '%s' AND post_status NOT IN ('trash', 'auto-draft') AND post_author = %d", $post_type, $current_user->ID) ); 145 145 $user_posts = true; … … 346 346 <?php } 347 347 348 if ( $is_trash && current_user_can($post_type_object->cap->edit_other _posts) ) { ?>348 if ( $is_trash && current_user_can($post_type_object->cap->edit_others_posts) ) { ?> 349 349 <input type="submit" name="delete_all" id="delete_all" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" /> 350 350 <?php } ?> … … 397 397 </select> 398 398 <input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" /> 399 <?php if ( $is_trash && current_user_can($post_type_object->cap->edit_other _posts) ) { ?>399 <?php if ( $is_trash && current_user_can($post_type_object->cap->edit_others_posts) ) { ?> 400 400 <input type="submit" name="delete_all2" id="delete_all2" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" /> 401 401 <?php } ?>
Note: See TracChangeset
for help on using the changeset viewer.