|
@@ 1395-1397 (lines=3) @@
|
| 1392 |
|
) |
| 1393 |
|
); |
| 1394 |
|
} |
| 1395 |
|
if ( $site_data->get_error_code() === 'site_data_fetch_failed' ) { |
| 1396 |
|
return new WP_Error( 'site_data_fetch_failed', esc_html__( 'Failed fetching site data. Try again later.', 'jetpack' ), array( 'status' => 400 ) ); |
| 1397 |
|
} |
| 1398 |
|
|
| 1399 |
|
if ( $site_data->get_error_code() === 'site_id_missing' ) { |
| 1400 |
|
return new WP_Error( 'site_id_missing', esc_html__( 'The ID of this site does not exist.', 'jetpack' ), array( 'status' => 404 ) ); |
|
@@ 1399-1401 (lines=3) @@
|
| 1396 |
|
return new WP_Error( 'site_data_fetch_failed', esc_html__( 'Failed fetching site data. Try again later.', 'jetpack' ), array( 'status' => 400 ) ); |
| 1397 |
|
} |
| 1398 |
|
|
| 1399 |
|
if ( $site_data->get_error_code() === 'site_id_missing' ) { |
| 1400 |
|
return new WP_Error( 'site_id_missing', esc_html__( 'The ID of this site does not exist.', 'jetpack' ), array( 'status' => 404 ) ); |
| 1401 |
|
} |
| 1402 |
|
} |
| 1403 |
|
|
| 1404 |
|
/** |
|
@@ 1074-1076 (lines=3) @@
|
| 1071 |
|
); |
| 1072 |
|
} |
| 1073 |
|
|
| 1074 |
|
if ( $rewind_data->get_error_code() === 'rewind_data_fetch_failed' ) { |
| 1075 |
|
return new WP_Error( 'rewind_data_fetch_failed', esc_html__( 'Failed fetching rewind data. Try again later.', 'jetpack' ), array( 'status' => 400 ) ); |
| 1076 |
|
} |
| 1077 |
|
|
| 1078 |
|
if ( $rewind_data->get_error_code() === 'site_id_missing' ) { |
| 1079 |
|
return new WP_Error( 'site_id_missing', esc_html__( 'The ID of this site does not exist.', 'jetpack' ), array( 'status' => 404 ) ); |
|
@@ 1078-1080 (lines=3) @@
|
| 1075 |
|
return new WP_Error( 'rewind_data_fetch_failed', esc_html__( 'Failed fetching rewind data. Try again later.', 'jetpack' ), array( 'status' => 400 ) ); |
| 1076 |
|
} |
| 1077 |
|
|
| 1078 |
|
if ( $rewind_data->get_error_code() === 'site_id_missing' ) { |
| 1079 |
|
return new WP_Error( 'site_id_missing', esc_html__( 'The ID of this site does not exist.', 'jetpack' ), array( 'status' => 404 ) ); |
| 1080 |
|
} |
| 1081 |
|
|
| 1082 |
|
return new WP_Error( |
| 1083 |
|
'error_get_rewind_data', |