Changeset 7894
- Timestamp:
- 05/05/2008 04:03:27 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-admin/includes/media.php (modified) (1 diff)
-
wp-includes/post.php (modified) (1 diff)
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) ) -
trunk/wp-includes/post.php
r7892 r7894 71 71 if ( empty( $args ) ) { 72 72 if ( isset( $GLOBALS['post'] ) ) { 73 $args = 'post_parent=' . (int) $GLOBALS['post']->post_parent;73 $args = array('post_parent' => (int) $GLOBALS['post']->post_parent ); 74 74 } else { 75 75 return false; 76 76 } 77 77 } elseif ( is_object( $args ) ) { 78 $args = 'post_parent=' . (int) $args->post_parent;78 $args = array('post_parent' => (int) $args->post_parent ); 79 79 } elseif ( is_numeric( $args ) ) { 80 $args = 'post_parent=' . (int) $args;80 $args = array('post_parent' => (int) $args); 81 81 } 82 82
Note: See TracChangeset
for help on using the changeset viewer.