From 1db4236e4cf580cb4c447c5b2d95030b5f975842 Mon Sep 17 00:00:00 2001 From: Michael Fields Date: Fri, 28 Dec 2012 17:48:34 -0800 Subject: [PATCH] Better indentation of the images query in image.php. props @ashfame see #45 --- image.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/image.php b/image.php index 1c1a3451..b513f7db 100644 --- a/image.php +++ b/image.php @@ -49,7 +49,14 @@ get_header(); * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery, * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file */ - $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); + $attachments = array_values( get_children( array( + 'post_parent' => $post->post_parent, + 'post_status' => 'inherit', + 'post_type' => 'attachment', + 'post_mime_type' => 'image', + 'order' => 'ASC', + 'orderby' => 'menu_order ID' + ) ) ); foreach ( $attachments as $k => $attachment ) { if ( $attachment->ID == $post->ID ) break;