Changeset 44684
- Timestamp:
- 01/21/2019 11:02:39 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/customize/preview.js
r44583 r44684 238 238 */ 239 239 api.addLinkPreviewing = function addLinkPreviewing() { 240 var linkSelectors = 'a[href], area ';240 var linkSelectors = 'a[href], area[href]'; 241 241 242 242 // Inject links into initial document. … … 337 337 api.prepareLinkPreview = function prepareLinkPreview( element ) { 338 338 var queryParams, $element = $( element ); 339 340 // Skip elements with no href attribute. Check first to avoid more expensive checks down the road 341 if ( ! element.hasAttribute( 'href' ) ) { 342 return; 343 } 339 344 340 345 // Skip links in admin bar. … … 777 782 778 783 // Update UUIDs in links and forms. 779 $( document.body ).find( 'a[href], area ' ).each( function() {784 $( document.body ).find( 'a[href], area[href]' ).each( function() { 780 785 api.prepareLinkPreview( this ); 781 786 } ); … … 811 816 api.settings.changeset.autosaved = true; // Start deferring to any autosave once changeset is updated. 812 817 813 $( document.body ).find( 'a[href], area ' ).each( function() {818 $( document.body ).find( 'a[href], area[href]' ).each( function() { 814 819 api.prepareLinkPreview( this ); 815 820 } );
Note: See TracChangeset
for help on using the changeset viewer.