$edit_post =
sanitize_post( $post, 'edit'
);
$form_fields = array
( 'post_title' => array
( 'label' =>
__( 'Title'
),
'value' =>
$edit_post->post_title,
),
'image_alt' => array
(),
'post_excerpt' => array
( 'label' =>
__( 'Caption'
),
'input' => 'html',
'html' =>
wp_caption_input_textarea( $edit_post ),
),
'post_content' => array
( 'label' =>
__( 'Description'
),
'value' =>
$edit_post->post_content,
'input' => 'textarea',
),
'url' => array
( 'label' =>
__( 'Link URL'
),
'input' => 'html',
'html' =>
image_link_input_fields( $post,
get_option( 'image_default_link_type'
) ),
'helps' =>
__( 'Enter a link URL or click above for presets.'
),
),