Skip to content

Commit 689c728

Browse files
authored
Icons: Guard against a non-array updates response (fairpm#244)
Signed-off-by: Andy Fragen <andy@thefragens.com>
1 parent 3bef1ca commit 689c728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/icons/namespace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function set_default_icon( $transient ) {
3131
$transient = new stdClass();
3232
}
3333

34-
if ( ! property_exists( $transient, 'response' ) ) {
34+
if ( ! property_exists( $transient, 'response' ) || ! is_array( $transient->response ) ) {
3535
return $transient;
3636
}
3737

0 commit comments

Comments
 (0)