WordPress.org

Make WordPress Core

Ticket #45053: Only_find__area__tags_with_href_attributes_to_prevent_JS_errors_on_pages_with_GMaps_+_Mark.patch

File Only_find__area__tags_with_href_attributes_to_prevent_JS_errors_on_pages_with_GMaps_+_Mark.patch, 704 bytes (added by janthiel, 3 years ago)

Narrow jQuery selector to only target area[href] instead of area

  • wp-includes/js/customize-preview.js

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    781781                        api.settings.changeset.uuid = uuid;
    782782
    783783                        // Update UUIDs in links and forms.
    784                         $( document.body ).find( 'a[href], area' ).each( function() {
     784                        $( document.body ).find( 'a[href], area[href]' ).each( function() {
    785785                                api.prepareLinkPreview( this );
    786786                        } );
    787787                        $( document.body ).find( 'form' ).each( function() {