Inline documentation for hooks in wp-admin/async-upload.php.

Props rzen for the initial patch.
Fixes #25517.

Built from https://develop.svn.wordpress.org/trunk@25942


git-svn-id: http://core.svn.wordpress.org/trunk@25901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2013-10-26 21:41:09 +00:00
parent a7465eb374
commit 95bf041b3a
1 changed files with 12 additions and 1 deletions

View File

@ -94,5 +94,16 @@ if ( $_REQUEST['short'] ) {
} else { } else {
// long form response - big chunk o html // long form response - big chunk o html
$type = $_REQUEST['type']; $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 );
} }