WordPress.org

Make WordPress Core

Ticket #25942: media-gallery.diff

File media-gallery.diff, 371 bytes (added by tommcfarlin, 6 years ago)

Resolving the 'undefined ajaxurl' error from JSHint

  • src/wp-admin/js/media-gallery.js

     
     1/* global ajaxurl */
    12jQuery(function($){
    23        $( 'body' ).bind( 'click.wp-gallery', function(e){
    34                var target = $( e.target ), id, img_size;