' . __('Dismiss') . '
' . sprintf(__('ā%sā has failed to upload due to an error'), esc_html($_FILES['async-upload']['name']) ) . '' .
esc_html($id->get_error_message()) . '
';
exit;
}
if ( $_REQUEST['short'] ) {
// short form response - attachment ID only
echo $id;
} else {
// long form response - big chunk o html
$type = $_REQUEST['type'];
echo apply_filters("async_upload_{$type}", $id);
}