Changeset 7894 for trunk/wp-admin/includes/media.php
- Timestamp:
- 05/05/2008 04:03:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r7888 r7894 587 587 $attachments = array($post->ID => $post); 588 588 else 589 $attachments = get_children( "post_parent=$post_id&post_type=attachment&orderby=menu_order ASC, ID&order=DESC");589 $attachments = get_children( array( 'post_parent' => $post_id, 'post_type' => 'attachment', 'orderby' => 'menu_order ASC, ID', 'order' => 'DESC') ); 590 590 } else { 591 591 if ( is_array($GLOBALS['wp_the_query']->posts) )
Note: See TracChangeset
for help on using the changeset viewer.