Support

Account

Home Forums Bug Reports Bug: ACF Pro 5.2.3 and WP Multisite Reply To: Bug: ACF Pro 5.2.3 and WP Multisite

  • Hi @anchordev

    Thanks for the reply. Perhaps my logic is slightly incorrect. Can you replace the line with this code instead:

    
    if( $sites ) {
    	
    	foreach( $sites as $site ) {
    		
    		// switch blog
    		switch_to_blog( $site['blog_id'] );
    		
    		
    		// get site updates
    		$updates = acf_get_updates();
    		
    		
    		// restore
    		restore_current_blog();
    		
    		
    		if( $updates ) {
    		
    			$prompt = true;
    			break;
    			
    		}
    		
    	}
    	
    }
    

    I’ve moved the restore function above the break which may have prevented it from working as expected. This should work for sure

    Please let me know ASAP so I can get an update out!

    Thanks
    E