Skip to content

Commit

Permalink
fix : removed partial refresh for the custom logo
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeo committed Sep 27, 2016
1 parent 54fade3 commit be5f246
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions functions/czr/class-czr-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,12 @@ function hu_alter_wp_customizer_settings( $wp_customize ) {

//CHANGE THE CUSTOM LOGO PRIORITY
$wp_customize -> get_control( 'custom_logo' ) -> priority = 7;

//The selective refresh support will be added later to the custom logo
if ( isset( $wp_customize->selective_refresh ) && is_object($wp_customize->get_setting( 'custom_logo' ) ) ) {
$wp_customize -> selective_refresh -> remove_partial( 'custom_logo' );
$wp_customize -> get_setting( 'custom_logo' ) -> transport = 'refresh';
}
}//end of hu_alter_wp_customizer_settings()


Expand Down

0 comments on commit be5f246

Please sign in to comment.