Make WordPress Core

Ticket #41489: 41489.2.patch

File 41489.2.patch, 603 bytes (added by scott.deluzio, 7 years ago)

Prevent customize-unpreviewable class from being added to links in playlists

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

     
    344344                        element.protocol = 'https:';
    345345                }
    346346
     347                // Ignore links with class wp-playlist-caption
     348                if ( element.classList.contains( 'wp-playlist-caption' ) ) {
     349                        return;
     350                }
     351
    347352                if ( ! api.isLinkPreviewable( element ) ) {
    348353
    349354                        // Style link as unpreviewable only if previewing in iframe; if previewing on frontend, links will be allowed to work normally.