Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #356 from xwp/fix/duplicated-edit-shortcuts
Browse files Browse the repository at this point in the history
Fix selector for detecting presence of existing edit shortcut
  • Loading branch information
westonruter authored Aug 3, 2017
2 parents 6534def + b3b1b05 commit 8644b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/customize-deferred-partial.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
*/
createEditShortcutForPlacement: function( placement ) {
var partial = this;
if ( placement.container && placement.container.find( '> .customize-partial-edit-shortcut-button:first-child' ).length ) {
if ( placement.container && placement.container.find( '> .customize-partial-edit-shortcut:first-child' ).length ) {
return;
}
api.selectiveRefresh.Partial.prototype.createEditShortcutForPlacement.call( partial, placement );
Expand Down

0 comments on commit 8644b7e

Please sign in to comment.