WordPress.org

Make WordPress Core

Ticket #25517: 25517.diff

File 25517.diff, 640 bytes (added by DrewAPicture, 7 years ago)

Clean up

  • src/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.
     100         *
     101         * The dynamic portion of the hook name, $type, refers to the attachment type.
     102         *
     103         * @since 2.5.0
     104         *
     105         * @param int $id Uploaded attachment ID.
     106         */
     107        echo apply_filters( "async_upload_{$type}", $id );
    98108}