Make WordPress Core

Changeset 40771


Ignore:
Timestamp:
05/17/2017 12:00:26 AM (9 years ago)
Author:
westonruter
Message:

Customize: Run a partial's fallback behavior (full refresh) when selective refresh fails due to a script error.

This ensures that 3rd-party scripts that users paste into Text widgets will gracefully recover and result in the expected preview.

See #27355.
Fixes #40658.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/customize-selective-refresh.js

    r40640 r40771  
    458458                                        console.error( partial.id, error );
    459459                                }
     460                                partial.fallback( error, [ placement ] );
    460461                        }
    461462                        /* jshint ignore:start */
Note: See TracChangeset for help on using the changeset viewer.