diff --git a/src/wp-admin/includes/class-wp-privacy-policy-content.php b/src/wp-admin/includes/class-wp-privacy-policy-content.php index 676d5b6736..dd704bdecf 100644 --- a/src/wp-admin/includes/class-wp-privacy-policy-content.php +++ b/src/wp-admin/includes/class-wp-privacy-policy-content.php @@ -87,7 +87,7 @@ final class WP_Privacy_Policy_Content { // Remove the extra values added to the meta. foreach ( $old as $key => $data ) { - if ( ! empty( $data['removed'] ) ) { + if ( ! is_array( $data ) || ! empty( $data['removed'] ) ) { unset( $old[ $key ] ); continue; }