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

Prevent enqueueing frontend JS in the customizer prevew #80

Merged
merged 1 commit into from
Aug 23, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion php/class-customize-snapshot-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ public function enqueue_preview_scripts() {
* Enqueue Customizer frontend scripts.
*/
public function enqueue_frontend_scripts() {
if ( ! $this->snapshot ) {
if ( ! $this->snapshot || is_customize_preview() ) {
return;
}
$handle = 'customize-snapshots-frontend';
Expand Down