WordPress.org

Make WordPress Core

Changeset 41088


Ignore:
Timestamp:
07/18/17 22:35:47 (4 months ago)
Author:
westonruter
Message:

Widgets: Check for existence of wp.customize.state before attempting to access in Text widget.

Amends [40631].
See #35243.
Fixes #41361 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/widgets/text-widgets.js

    r41050 r41088  
    286286                         * callbacks. See <https://core.trac.wordpress.org/ticket/33507>. 
    287287                         */ 
    288                         if ( wp.customize ) { 
     288                        if ( wp.customize && wp.customize.state ) { 
    289289                            wp.customize.state( 'processing' ).set( wp.customize.state( 'processing' ).get() + 1 ); 
    290290                            _.delay( function() { 
Note: See TracChangeset for help on using the changeset viewer.