Automattic / Automattic/jetpack

Jetpack Search: Ensure that the widget always persists an array

Open
#23,476 12 comments 1 reaction 1 assignee Claimed by @kangzj View on GitHub
[Feature] Search [Package] Search [Plugin] Jetpack [Pri] Low [Status] Auto-allocated Bug Customer Report [LEGACY] Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### Steps to Reproduce

Reported by one of our customers; exact repro steps are unknown.

### What actually happened

It looks like a Jetpack Search widget was persisted into the options table as a non-array value, resulting in this warning notice being thrown:

```
PHP Warning: Undefined array key 'jetpack-search-filters-3' in /home/(redacted)/wp-includes/widgets.php on line 918
```

cc @StefMattana @kangzj

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.