Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #27355, comment 76


Ignore:
Timestamp:
02/19/2016 01:35:10 AM (9 years ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27355, comment 76

    v1 v2  
    44I've seen this before as well in certain situations but didn't patch it yet. The issue can be easily reproduced even without selective refresh by adding a button in the preview which does:
    55
    6 {{{#!diff
     6{{{#!js
    77wp.customize.preview.send( 'refresh' );
    88wp.customize.preview.send( 'refresh' );
     
    1515The alternative fix, to address the symptom instead of the underlying cause, is to debounce the `requestFullRefresh` function:
    1616
    17 {{{#!js
     17{{{#!diff
    1818--- src/wp-includes/js/customize-selective-refresh.js
    1919+++ src/wp-includes/js/customize-selective-refresh.js