Automattic / Automattic/jetpack
Jetpack Search: Ensure that the widget always persists an array
Open
[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
Assessment
This issue has not been assessed yet.