Ticket #27538: 27538.2.patch
File 27538.2.patch, 1.5 KB (added by , 9 years ago) |
---|
-
src/wp-includes/class-wp-customize-widgets.php
1083 1083 // Invoke the widget update callback. 1084 1084 foreach ( (array) $wp_registered_widget_updates as $name => $control ) { 1085 1085 if ( $name === $parsed_id['id_base'] && is_callable( $control['callback'] ) ) { 1086 $_suspend_cache = wp_suspend_cache_addition(); 1087 wp_suspend_cache_addition( true ); 1086 1088 ob_start(); 1087 1089 call_user_func_array( $control['callback'], $control['params'] ); 1088 1090 ob_end_clean(); 1091 wp_suspend_cache_addition( $_suspend_cache ); 1089 1092 break; 1090 1093 } 1091 1094 } -
src/wp-includes/option.php
626 626 * @return bool False if value was not set and true if value was set. 627 627 */ 628 628 function set_transient( $transient, $value, $expiration = 0 ) { 629 if ( wp_suspend_cache_addition() ) 630 return false; 629 631 630 632 /** 631 633 * Filter a specific transient before its value is set. … … 1366 1368 * @return bool False if value was not set and true if value was set. 1367 1369 */ 1368 1370 function set_site_transient( $transient, $value, $expiration = 0 ) { 1371 if ( wp_suspend_cache_addition() ) 1372 return false; 1369 1373 1370 1374 /** 1371 1375 * Filter the value of a specific site transient before it is set.