Make WordPress Core


Ignore:
Timestamp:
05/05/2008 04:03:27 PM (17 years ago)
Author:
ryan
Message:

Use array calling style. Props DD32. see #6647

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r7888 r7894  
    587587            $attachments = array($post->ID => $post);
    588588        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') );
    590590    } else {
    591591        if ( is_array($GLOBALS['wp_the_query']->posts) )
Note: See TracChangeset for help on using the changeset viewer.