Skip to content

Commit 03db164

Browse files
author
Luke Carbis
authored
Merge pull request #898 from xwp/bugfix/customizer-performance
Short-circuit save_alert_inline_edit when in customizer
2 parents cc5c59f + 014893b commit 03db164

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

classes/class-alerts-list.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ public function enqueue_scripts( $page ) {
334334
* @return array
335335
*/
336336
function save_alert_inline_edit( $data, $postarr ) {
337+
if ( did_action( 'customize_preview_init' ) ) {
338+
return $data;
339+
}
340+
337341
$post_id = $postarr['ID'];
338342
$post_type = wp_stream_filter_input( INPUT_POST, 'post_type' );
339343
if ( Alerts::POST_TYPE !== $post_type ) {

0 commit comments

Comments
 (0)