Make WordPress Core

Changeset 29070


Ignore:
Timestamp:
07/10/2014 05:55:43 PM (10 years ago)
Author:
wonderboymusic
Message:

Avoid JS errors after [29057]. When the modal closes, reset the URL.

See #24716.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-grid.js

    r29069 r29070  
    447447                    self.modal.remove();
    448448                    $( 'body' ).off( 'keydown.media-modal' ); /* remove the keydown event */
     449
     450                    self.resetRoute();
    449451                };
    450452
Note: See TracChangeset for help on using the changeset viewer.