Make WordPress Core

Changeset 13955


Ignore:
Timestamp:
04/03/2010 04:38:20 AM (14 years ago)
Author:
nacin
Message:

Use correct cap in get_editable_user_ids(). edit_cap is the meta cap (edit_post) and needs a post id passed, edit_type_cap is the primitive edit_posts cap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/user.php

    r13947 r13955  
    251251
    252252    if ( ! $user->has_cap($post_type_obj->edit_others_cap) ) {
    253         if ( $user->has_cap($post_type_obj->edit_cap) || $exclude_zeros == false )
     253        if ( $user->has_cap($post_type_obj->edit_type_cap) || ! $exclude_zeros )
    254254            return array($user->id);
    255255        else
Note: See TracChangeset for help on using the changeset viewer.