Support » Alpha/Beta/RC » Customizer preview keeps refreshing infinitely under certain circumstances

  • Hi,

    A friend pointed out a possible bug when the customizer preview frame keeps infinitely refreshing in WP 4.7-beta4 if you do this:

    1. create a new page
    2. add it to a menu that is associated to a theme location
    3. delete the page you’ve create in step 1.
    4. go to customier screen, it will be refreshling infinitely

    I started debugging our theme and found out that this only happens if the menu is using custom walker, for example like this (add to functions.php in Twenty Sixteen and Twenty Seventeen themes):

    
    class Johnnie_Walker extends Walker_Nav_Menu {}
    
    function custom_menu_walker( $args ) {
    	return array_merge( $args, array(
    		'walker' => new Johnnie_Walker()
    	) );
    }
    add_filter( 'wp_nav_menu_args', 'custom_menu_walker' );
    

    As shown in the demonstration above, it is irrelevant what the custom walker implementation does, the example above just extends the original WP walker (no custom method overrides) and the problem still exists.

    Unfortunately I don’t have time at the moment to debug this further and submit a patch, but I still wanted to point it out here on the forum, so others are aware of this.

    Found this related (and fixed) bug report: https://core.trac.wordpress.org/ticket/32894

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Customizer preview keeps refreshing infinitely under certain circumstances’ is closed to new replies.