Make WordPress Core

Changeset 41089 for branches/4.8


Ignore:
Timestamp:
07/18/2017 10:39:40 PM (9 years ago)
Author:
westonruter
Message:

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

Merges [41088] onto 4.8 branch.
Amends [40631].
See #35243.
Fixes #41361 for 4.8.1.

Location:
branches/4.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.8

  • branches/4.8/src/wp-admin/js/widgets/text-widgets.js

    r41067 r41089  
    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.