WordPress 3.8
[autoinstalls/wordpress.git] / wp-admin / async-upload.php
index 3a24b52572a0918d86c501b131cd33116647d687..a16c8d3aa8ca6f4583349ef05ee342d021eaddcf 100644 (file)
@@ -94,5 +94,16 @@ if ( $_REQUEST['short'] ) {
 } else {
        // long form response - big chunk o html
        $type = $_REQUEST['type'];
-       echo apply_filters("async_upload_{$type}", $id);
+
+       /**
+        * Filter the returned ID of an uploaded attachment.
+        *
+        * The dynamic portion of the hook name, $type, refers to the attachment type,
+        * such as 'iamge', 'audio', 'video', 'file', etc.
+        *
+        * @since 2.5.0
+        *
+        * @param int $id Uploaded attachment ID.
+        */
+       echo apply_filters( "async_upload_{$type}", $id );
 }