]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/edit-attachment-rows.php
Wordpress 3.0.6
[autoinstalls/wordpress.git] / wp-admin / edit-attachment-rows.php
index 0014d7205e6abe18e74c6a5eb07c5fefc9e4476d..d88316be90978a1888849881f5123e76bd026634 100644 (file)
@@ -39,8 +39,8 @@ elseif ( !$is_trash && $post->post_status == 'trash' )
        continue;
 
 $alt = ( 'alternate' == $alt ) ? '' : 'alternate';
        continue;
 
 $alt = ( 'alternate' == $alt ) ? '' : 'alternate';
-global $current_user;
-$post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' );
+
+$post_owner = ( get_current_user_id() == $post->post_author ? 'self' : 'other' );
 $att_title = _draft_or_post_title();
 ?>
        <tr id='post-<?php echo $id; ?>' class='<?php echo trim( $alt . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top">
 $att_title = _draft_or_post_title();
 ?>
        <tr id='post-<?php echo $id; ?>' class='<?php echo trim( $alt . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top">