Make WordPress Core


Ignore:
Timestamp:
11/14/2008 05:13:08 PM (16 years ago)
Author:
ryan
Message:

Handle both post and page caps in get_editable_user_id(). Props DD32. fixes #8208

File:
1 edited

Legend:

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

    r9643 r9683  
    357357add_meta_box('pageslugdiv', __('Page Slug'), 'page_slug_meta_box', 'page', 'normal', 'core');
    358358
    359 $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
     359$authors = get_editable_user_ids( $current_user->id, true, 'page' ); // TODO: ROLE SYSTEM
    360360if ( $post->post_author && !in_array($post->post_author, $authors) )
    361361    $authors[] = $post->post_author;
     
    370370    function page_author_meta_box($post){
    371371        global $current_user, $user_ID;
    372         $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
     372        $authors = get_editable_user_ids( $current_user->id, true, 'page' ); // TODO: ROLE SYSTEM
    373373        if ( $post->post_author && !in_array($post->post_author, $authors) )
    374374            $authors[] = $post->post_author;
Note: See TracChangeset for help on using the changeset viewer.