From 240551a9fa2bacf103ee3a77de2c36e736b6ad5d Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 10 Apr 2010 12:49:58 +0000 Subject: [PATCH] Fix notice in get_media_items(). git-svn-id: https://develop.svn.wordpress.org/trunk@14059 602fd350-edb4-49c9-b593-d223f7449a82 --- 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' )