Make WordPress Core

Ticket #25517: async-upload.diff

File async-upload.diff, 558 bytes (added by rzen, 11 years ago)
  • wp-admin/async-upload.php

     
    9494} else {
    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 of a given type.
     100         *
     101         * @since 2.5.0
     102         *
     103         * @param int $id Uploaded attachment ID.
     104         */
     105        echo apply_filters( "async_upload_{$type}", $id );
    98106}