Skip to content

Commit

Permalink
Add doc comment for reset error status function
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Apr 1, 2024
1 parent e471bf9 commit 3949a08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes/Services/SiteGenService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,12 @@ public static function sync_flow_data( $updated_data ) {
FlowService::update_data_in_wp_option( $data );
}

/**
* Reset the error status in the flow data.
*
* @param array $data The flow data.
* @return array
*/
public static function reset_error_status( $data ) {
if ( isset( $data['sitegen']['siteGenErrorStatus'] ) && true === $data['sitegen']['siteGenErrorStatus'] ) {
$data['sitegen']['siteGenErrorStatus'] = false;
Expand Down

0 comments on commit 3949a08

Please sign in to comment.