class Basics {
public function build_frontend_post_form( $blog_object ) {
switch_to_blog( $blog_object->blog_id );
if( !( current_user_can( 'administrator' ) and current_user_can( 'publish_posts' ) ) ) { restore_current_blog(); return false; }
restore_current_blog();
#DO STUFF
}
}
In the exclusion (and anyway if not necessary for my logic) I need to use it restore_current_blog, or enough the return false? So In this case the base blog will be restoring after the function or not?