mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-20 19:41:28 +02:00
Widgets: Check for existence of wp.customize.state
before attempting to access in Text widget.
Amends [40631]. See #35243. Fixes #41361 for trunk. Built from https://develop.svn.wordpress.org/trunk@41088 git-svn-id: http://core.svn.wordpress.org/trunk@40928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1a005d853f
commit
9330e39b3d
@ -285,7 +285,7 @@ wp.textWidgets = ( function( $ ) {
|
|||||||
* having to make server round-trips to call the respective WP_Widget::update()
|
* having to make server round-trips to call the respective WP_Widget::update()
|
||||||
* callbacks. See <https://core.trac.wordpress.org/ticket/33507>.
|
* callbacks. See <https://core.trac.wordpress.org/ticket/33507>.
|
||||||
*/
|
*/
|
||||||
if ( wp.customize ) {
|
if ( wp.customize && wp.customize.state ) {
|
||||||
wp.customize.state( 'processing' ).set( wp.customize.state( 'processing' ).get() + 1 );
|
wp.customize.state( 'processing' ).set( wp.customize.state( 'processing' ).get() + 1 );
|
||||||
_.delay( function() {
|
_.delay( function() {
|
||||||
wp.customize.state( 'processing' ).set( wp.customize.state( 'processing' ).get() - 1 );
|
wp.customize.state( 'processing' ).set( wp.customize.state( 'processing' ).get() - 1 );
|
||||||
|
2
wp-admin/js/widgets/text-widgets.min.js
vendored
2
wp-admin/js/widgets/text-widgets.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-41086';
|
$wp_version = '4.9-alpha-41088';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user