mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Use array calling style. Props DD32. see #6647
git-svn-id: https://develop.svn.wordpress.org/trunk@7894 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -586,7 +586,7 @@ function get_media_items( $post_id, $errors ) {
|
||||
if ( $post && $post->post_type == 'attachment' )
|
||||
$attachments = array($post->ID => $post);
|
||||
else
|
||||
$attachments = get_children("post_parent=$post_id&post_type=attachment&orderby=menu_order ASC, ID&order=DESC");
|
||||
$attachments = get_children( array( 'post_parent' => $post_id, 'post_type' => 'attachment', 'orderby' => 'menu_order ASC, ID', 'order' => 'DESC') );
|
||||
} else {
|
||||
if ( is_array($GLOBALS['wp_the_query']->posts) )
|
||||
foreach ( $GLOBALS['wp_the_query']->posts as $attachment )
|
||||
|
||||
Reference in New Issue
Block a user