* @subpackage Administration
*/
+if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
+ define( 'DOING_AJAX', true );
+}
+
define('WP_ADMIN', true);
if ( defined('ABSPATH') )
header('Content-Type: text/html; charset=' . get_option('blog_charset'));
if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
- define( 'DOING_AJAX', true );
include ABSPATH . 'wp-admin/includes/ajax-actions.php';
send_nosniff_header();
* 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.
+ * such as 'image', 'audio', 'video', 'file', etc.
*
* @since 2.5.0
*