Changeset 14588
- Timestamp:
- 05/12/2010 09:03:33 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
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 } ?> -
trunk/wp-admin/includes/post.php
r14585 r14588 47 47 $ptype = get_post_type_object( $post_data['post_type'] ); 48 48 if ( isset($post_data['user_ID']) && ($post_data['post_author'] != $post_data['user_ID']) ) { 49 if ( !current_user_can( $ptype->cap->edit_other _posts ) ) {49 if ( !current_user_can( $ptype->cap->edit_others_posts ) ) { 50 50 if ( 'page' == $post_data['post_type'] ) { 51 51 return new WP_Error( 'edit_others_pages', $update ? -
trunk/wp-admin/includes/template.php
r14585 r14588 1112 1112 </label> 1113 1113 1114 <?php if ( 'post' == $screen->post_type && $can_publish && current_user_can( $post_type_object->cap->edit_other _posts ) ) : ?>1114 <?php if ( 'post' == $screen->post_type && $can_publish && current_user_can( $post_type_object->cap->edit_others_posts ) ) : ?> 1115 1115 1116 1116 <?php if ( $bulk ) : ?> -
trunk/wp-admin/includes/user.php
r14585 r14588 250 250 $post_type_obj = get_post_type_object($post_type); 251 251 252 if ( ! $user->has_cap($post_type_obj->cap->edit_other _posts) ) {252 if ( ! $user->has_cap($post_type_obj->cap->edit_others_posts) ) { 253 253 if ( $user->has_cap($post_type_obj->cap->edit_posts) || ! $exclude_zeros ) 254 254 return array($user->id); -
trunk/wp-includes/query.php
r14585 r14588 2195 2195 $edit_cap = $post_type_object->cap->edit_post; 2196 2196 $read_cap = $post_type_object->cap->read_post; 2197 $edit_others_cap = $post_type_object->cap->edit_other _posts;2197 $edit_others_cap = $post_type_object->cap->edit_others_posts; 2198 2198 $read_private_cap = $post_type_object->cap->read_private_posts; 2199 2199 } else {
Note: See TracChangeset
for help on using the changeset viewer.