Ticket #6772: 6772.diff
| File 6772.diff, 0.6 kB (added by DD32, 3 months ago) |
|---|
-
wp-includes/media.php
old new 359 359 ), $attr)); 360 360 361 361 $id = intval($id); 362 $attachments = get_children( "post_parent=$id&post_type=attachment&post_mime_type=image&orderby={$orderby}");362 $attachments = get_children( array('post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => $orderby) ); 363 363 364 364 if ( empty($attachments) ) 365 365 return '';
