]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/meta-boxes.php
Wordpress 3.0.1
[autoinstalls/wordpress.git] / wp-admin / includes / meta-boxes.php
index 0f8b339b26513da8aedf81fa9a303416c52d961b..5358874c7bb3f27de97c5cb62f9bbf8c2cf7f3a3 100644 (file)
@@ -501,8 +501,8 @@ function post_slug_meta_box($post) {
  * @param object $post
  */
 function post_author_meta_box($post) {
-       global $current_user, $user_ID;
-       $authors = get_editable_user_ids( $current_user->id, true, $post->post_type ); // TODO: ROLE SYSTEM
+       global $user_ID;
+       $authors = get_editable_user_ids( get_current_user_id(), true, $post->post_type ); // TODO: ROLE SYSTEM
        if ( $post->post_author && !in_array($post->post_author, $authors) )
                $authors[] = $post->post_author;
 ?>