Make WordPress Core


Ignore:
Timestamp:
05/12/2010 09:03:33 PM (16 years ago)
Author:
nacin
Message:

More typos. see #13358.

File:
1 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 } ?>
Note: See TracChangeset for help on using the changeset viewer.