diff --git a/wp-includes/class-wp-customize.php b/wp-includes/class-wp-customize.php index d2a69b3209..f708102b29 100644 --- a/wp-includes/class-wp-customize.php +++ b/wp-includes/class-wp-customize.php @@ -105,8 +105,8 @@ final class WP_Customize { public function wp_loaded() { do_action( 'customize_register' ); - if ( $this->is_preview() ) - add_action( 'template_redirect', array( $this, 'customize_preview_init' ) ); + if ( $this->is_preview() && ! is_admin() ) + $this->customize_preview_init(); } /**