mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user