Changeset 7650
- Timestamp:
- 04/14/08 16:30:09 (7 months ago)
- Files:
-
- branches/2.5/wp-admin/includes/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.5/wp-admin/includes/media.php
r7612 r7650 591 591 592 592 function get_media_items( $post_id, $errors ) { 593 if ( $post_id && $post = get_post($post_id) ) { 594 if ( $post->post_type == 'attachment' ) 593 if ( $post_id ) { 594 $post = get_post($post_id); 595 if ( $post && $post->post_type == 'attachment' ) 595 596 $attachments = array($post->ID => $post); 596 597 else
