Make WordPress Core

Changeset 25942


Ignore:
Timestamp:
10/26/2013 09:40:13 PM (11 years ago)
Author:
DrewAPicture
Message:

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

Props rzen for the initial patch.
Fixes #25517.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/async-upload.php

    r25616 r25942  
    9595    // long form response - big chunk o html
    9696    $type = $_REQUEST['type'];
    97     echo apply_filters("async_upload_{$type}", $id);
     97
     98    /**
     99     * Filter the returned ID of an uploaded attachment.
     100     *
     101     * The dynamic portion of the hook name, $type, refers to the attachment type,
     102     * such as 'iamge', 'audio', 'video', 'file', etc.
     103     *
     104     * @since 2.5.0
     105     *
     106     * @param int $id Uploaded attachment ID.
     107     */
     108    echo apply_filters( "async_upload_{$type}", $id );
    98109}
Note: See TracChangeset for help on using the changeset viewer.