Changeset 39270
- Timestamp:
- 11/16/2016 08:36:40 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/customize-selective-refresh.js
r39202 r39270 110 110 */ 111 111 createEditShortcutForPlacement: function( placement ) { 112 var partial = this, $shortcut, $placementContainer ;112 var partial = this, $shortcut, $placementContainer, illegalAncestorSelector, illegalContainerSelector; 113 113 if ( ! placement.container ) { 114 114 return; 115 115 } 116 116 $placementContainer = $( placement.container ); 117 if ( ! $placementContainer.length ) { 117 illegalAncestorSelector = 'head'; 118 illegalContainerSelector = 'area, audio, base, bdi, bdo, br, button, canvas, col, colgroup, command, datalist, embed, head, hr, html, iframe, img, input, keygen, label, link, map, math, menu, meta, noscript, object, optgroup, option, param, progress, rp, rt, ruby, script, select, source, style, svg, table, tbody, textarea, tfoot, thead, title, tr, track, video, wbr'; 119 if ( ! $placementContainer.length || $placementContainer.is( illegalContainerSelector ) || $placementContainer.closest( illegalAncestorSelector ).length ) { 118 120 return; 119 121 }
Note: See TracChangeset
for help on using the changeset viewer.