| @@ -328,8 +328,14 @@ | ||
| 328 | 328 | } |
| 329 | 329 | return array(); |
| 330 | 330 | } |
| 331 | 331 | if ( ! is_array( $raw ) ) { |
| 332 | + if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { | |
| 333 | + // Usually a contributor that forgot to return the list. It | |
| 334 | + // costs every contribution, so it should not be silent either. | |
| 335 | + // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log | |
| 336 | + error_log( '[xspeed] xspeed_pro_audit_suggestions returned ' . gettype( $raw ) . ', not an array; contributions dropped' ); | |
| 337 | + } | |
| 332 | 338 | return array(); |
| 333 | 339 | } |
| 334 | 340 | |
| 335 | 341 | $out = array(); |