WordPress.org

Make WordPress Core

Changeset 14588


Ignore:
Timestamp:
05/12/10 21:03:33 (5 years ago)
Author:
nacin
Message:

More typos. see #13358.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r14585 r14588  
    141141 
    142142$user_posts = false; 
    143 if ( !current_user_can($post_type_object->cap->edit_other_posts) ) { 
     143if ( !current_user_can($post_type_object->cap->edit_others_posts) ) { 
    144144    $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) ); 
    145145    $user_posts = true; 
     
    346346<?php } 
    347347 
    348 if ( $is_trash && current_user_can($post_type_object->cap->edit_other_posts) ) { ?> 
     348if ( $is_trash && current_user_can($post_type_object->cap->edit_others_posts) ) { ?> 
    349349<input type="submit" name="delete_all" id="delete_all" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" /> 
    350350<?php } ?> 
     
    397397</select> 
    398398<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) ) { ?> 
    400400<input type="submit" name="delete_all2" id="delete_all2" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" /> 
    401401<?php } ?> 
  • trunk/wp-admin/includes/post.php

    r14585 r14588  
    4747    $ptype = get_post_type_object( $post_data['post_type'] ); 
    4848    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 ) ) { 
    5050            if ( 'page' == $post_data['post_type'] ) { 
    5151                return new WP_Error( 'edit_others_pages', $update ? 
  • trunk/wp-admin/includes/template.php

    r14585 r14588  
    11121112            </label> 
    11131113 
    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 ) ) : ?> 
    11151115 
    11161116<?php   if ( $bulk ) : ?> 
  • trunk/wp-admin/includes/user.php

    r14585 r14588  
    250250    $post_type_obj = get_post_type_object($post_type); 
    251251 
    252     if ( ! $user->has_cap($post_type_obj->cap->edit_other_posts) ) { 
     252    if ( ! $user->has_cap($post_type_obj->cap->edit_others_posts) ) { 
    253253        if ( $user->has_cap($post_type_obj->cap->edit_posts) || ! $exclude_zeros ) 
    254254            return array($user->id); 
  • trunk/wp-includes/query.php

    r14585 r14588  
    21952195            $edit_cap = $post_type_object->cap->edit_post; 
    21962196            $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; 
    21982198            $read_private_cap = $post_type_object->cap->read_private_posts; 
    21992199        } else { 
Note: See TracChangeset for help on using the changeset viewer.