Skip to content

Commit

Permalink
Check that the theme supports the 'customize' argument for 'theme-lay…
Browse files Browse the repository at this point in the history
…outs' before loading the script.
  • Loading branch information
Justin Tadlock committed Jul 1, 2015
1 parent 73fcb99 commit e2599fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/functions-customize.php
Expand Up @@ -140,6 +140,6 @@ function hybrid_customize_preview_register_scripts() {
*/
function hybrid_customize_preview_enqueue_scripts() {

if ( current_theme_supports( 'theme-layouts' ) )
if ( current_theme_supports( 'theme-layouts', 'customize' ) )
wp_enqueue_script( 'hybrid-customize-preview' );
}

0 comments on commit e2599fe

Please sign in to comment.