WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/27/2010 01:07:21 AM (10 years ago)
Author:
scribu
Message:

Deprecated get_editable_user_ids() altogether, along with similar, unused functions. See #14572

File:
1 edited

Legend:

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

    r15539 r15542  
    150150
    151151if ( post_type_supports($post_type, 'author') ) {
    152     $_editable_user_ids = get_editable_user_ids( $current_user->id, true, $post_type ); // TODO: ROLE SYSTEM
    153     if ( $post->post_author && !in_array($post->post_author, $_editable_user_ids) )
    154         $_editable_user_ids[] = $post->post_author;
    155 
    156     if ( !empty($_editable_user_ids) || is_super_admin() )
     152    if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) )
    157153        add_meta_box('authordiv', __('Author'), 'post_author_meta_box', $post_type, 'normal', 'core');
    158154}
Note: See TracChangeset for help on using the changeset viewer.