diff --git a/push-syndication-server/push-syndication-server.php b/push-syndication-server/push-syndication-server.php index bda6102ca0e2fe785a42788b5c184b752415097b..1a688ac91f7a3cf712076b2a3980e14749af0824 100644 --- a/push-syndication-server/push-syndication-server.php +++ b/push-syndication-server/push-syndication-server.php @@ -464,10 +464,18 @@ class Push_Syndication_Server { $selected_siteoptions = array_intersect_key( wp_load_alloptions(), array_combine(get_option( 'syn_selected_siteoptions' ), get_option( 'syn_selected_siteoptions' )) ); + // Holds the error sites with the error message + $error_sites = array(); + foreach( $sites as $site ) { $transport_type = get_post_meta( $site->ID, 'syn_transport_type', true); $client = wp_client_factory::get_client( $transport_type ,$site->ID ); - $client->set_options( $selected_siteoptions, $site->ID ); + $result = $client->set_options( $selected_siteoptions, $site->ID ); + if( !$result ) { + $error_sites[] = array( + + ); + } } }