Changeset 7651
- Timestamp:
- 04/14/2008 04:30:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r7611 r7651 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
Note: See TracChangeset
for help on using the changeset viewer.