From 0de035558ee354fa880342147e7257e78c7f4839 Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 10 Apr 2010 12:49:58 +0000 Subject: [PATCH] Fix notice in get_media_items(). git-svn-id: http://svn.automattic.com/wordpress/trunk@14059 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index c9f6be4a09..6ea7dd6809 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -1120,6 +1120,7 @@ function get_attachment_fields_to_edit($post, $errors = null) { * @return string */ function get_media_items( $post_id, $errors ) { + $attachments = array(); if ( $post_id ) { $post = get_post($post_id); if ( $post && $post->post_type == 'attachment' )