Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jetpack: Fix authors widget 'all' checkbox (#40878)
The block-based legacy widget editor sends the instance data through the `update()` function multiple times, for preview and again on save. This widget doing `isset( $new_instance['all'] )` was therefore going from unset to `false` on preview and then from `false` to `true` on save. Instead let's do like other widgets with checkboxes do, and cast the value to boolean when set. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12658870949 Upstream-Ref: Automattic/jetpack@d3eb144
- Loading branch information