| @@ -296,9 +296,8 @@ | ||
| 296 | 296 | 'status' => 'running', |
| 297 | 297 | 'scan_id' => $polled['scan_id'], |
| 298 | 298 | 'step' => $polled['step'], |
| 299 | 299 | 'latest' => Scan::latest(), |
| 300 | - 'stored' => Scan::stored_state(), | |
| 301 | 300 | 'visibility' => Scan::visibility(), |
| 302 | 301 | 'private_supported' => Scan::private_supported(), |
| 303 | 302 | ) |
| 304 | 303 | ); |
| @@ -306,9 +305,8 @@ | ||
| 306 | 305 | return rest_ensure_response( |
| 307 | 306 | array( |
| 308 | 307 | 'status' => 'complete', |
| 309 | 308 | 'latest' => $polled, |
| 310 | - 'stored' => 'ok', | |
| 311 | 309 | 'visibility' => Scan::visibility(), |
| 312 | 310 | 'private_supported' => Scan::private_supported(), |
| 313 | 311 | ) |
| 314 | 312 | ); |
| @@ -317,9 +315,8 @@ | ||
| 317 | 315 | return rest_ensure_response( |
| 318 | 316 | array( |
| 319 | 317 | 'status' => 'idle', |
| 320 | 318 | 'latest' => Scan::latest(), |
| 321 | - 'stored' => Scan::stored_state(), | |
| 322 | 319 | 'visibility' => Scan::visibility(), |
| 323 | 320 | 'private_supported' => Scan::private_supported(), |
| 324 | 321 | ) |
| 325 | 322 | ); |
| @@ -928,12 +925,8 @@ | ||
| 928 | 925 | return; |
| 929 | 926 | } |
| 930 | 927 | |
| 931 | 928 | $latest = Scan::latest(); |
| 932 | - if ( null === $latest && 'unreadable' === Scan::stored_state() ) { | |
| 933 | - \WP_CLI::log( 'The last scan report could not be read back from the database and was discarded. Run `wp xspeed scan run --wait` again.' ); | |
| 934 | - return; | |
| 935 | - } | |
| 936 | 929 | if ( null === $latest ) { |
| 937 | 930 | \WP_CLI::log( 'No scan yet. Run `wp xspeed scan run --wait`.' ); |
| 938 | 931 | return; |
| 939 | 932 | } |