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 guys

    Sorry about this issue and thanks for all the info / links.

    It seems like an easy fix, but can someone please confirm the following:

    Change line 72 loop to:

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

    All that is changed is the restore_current_blog(); function is moved within the foreach loop.

    This should fix the issue, and upon confirmation, I will release a new version!

    Cheers
    E