Make WordPress Core

Ticket #63329: 63329.patch

File 63329.patch, 1004 bytes (added by khushipatel15, 2 months ago)

This patch shows use of ajax reference.

  • wp-admin/async-upload.php

    diff --git a/63329.patch b/63329.patch
    index 870e21ed24..e69de29bb2 100644
    Binary files a/63329.patch and b/63329.patch differ
    diff --git a/wp-admin/async-upload.php b/wp-admin/async-upload.php
    index 30f43b4614..133587eaae 100644
    a b if ( isset( $_REQUEST['attachment_id'] ) && (int) $_REQUEST['attachment_id'] && 
    100100        exit;
    101101}
    102102
    103 check_admin_referer( 'media-form' );
    104103check_ajax_referer( 'media-form' );
    105104
    106105