Show file url after upload form media library, props yoavf, fixes #9267

git-svn-id: https://develop.svn.wordpress.org/trunk@10696 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-03-04 08:22:25 +00:00
parent 891e588a54
commit 37664340f5
4 changed files with 30 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ if ( isset($_REQUEST['attachment_id']) && ($id = intval($_REQUEST['attachment_id
add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2);
echo get_media_item($id, array( 'send' => false, 'delete' => false ));
} else {
add_filter('attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2);
echo get_media_item($id);
}
exit;
@@ -53,4 +54,4 @@ else {
echo apply_filters("async_upload_{$type}", $id);
}
?>
?>