diff --git a/wp-includes/theme.php b/wp-includes/theme.php index fc1fe4adc..5a26182ed 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -892,6 +892,8 @@ function preview_theme_ob_filter( $content ) { * @return string */ function preview_theme_ob_filter_callback( $matches ) { + if ( strpos($matches[4], 'onclick') !== false ) + $matches[4] = preg_replace('#onclick=([\'"]).*?(?. (?