WordPress.org

Make WordPress Core

Changeset 39606


Ignore:
Timestamp:
12/16/16 05:37:41 (8 months ago)
Author:
dd32
Message:

Customize: Prevent edit shortcut from losing event handler after selective refresh.

Props sirbrillig.
Merges [39581] to the 4.7 branch.
See #27403.
Fixes #39100.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-includes/js/customize-selective-refresh.js

    r39345 r39606  
    122122            } 
    123123            $shortcut = partial.createEditShortcut(); 
    124             partial.addEditShortcutToPlacement( placement, $shortcut ); 
    125124            $shortcut.on( 'click', function( event ) { 
    126125                event.preventDefault(); 
     
    128127                partial.showControl(); 
    129128            } ); 
     129            partial.addEditShortcutToPlacement( placement, $shortcut ); 
    130130        }, 
    131131 
Note: See TracChangeset for help on using the changeset viewer.