PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-beta
Jetpack – WP Security, Backup, Speed, & Growth v16.3-beta
16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 All 507 releases
← All changes | modules/widgets/authors.php +4 -4 16.3-a.5 → 16.3-beta View file →
@@ -288,12 +288,12 @@
288 288 * @param array $old_instance Old widget instance data.
289 289 * @return array
290 290 */
291 291 public function update( $new_instance, $old_instance ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
292 - $new_instance['title'] = wp_strip_all_tags( $new_instance['title'] );
293 - $new_instance['all'] = isset( $new_instance['all'] ) ? (bool) $new_instance['all'] : false;
294 - $new_instance['number'] = (int) $new_instance['number'];
295 - $new_instance['avatar_size'] = (int) $new_instance['avatar_size'];
292 + $new_instance['title'] = wp_strip_all_tags( $new_instance['title'] ?? '' );
293 + $new_instance['all'] = (bool) ( $new_instance['all'] ?? false );
294 + $new_instance['number'] = (int) ( $new_instance['number'] ?? 5 );
295 + $new_instance['avatar_size'] = (int) ( $new_instance['avatar_size'] ?? 48 );
296 296
297 297 self::flush_cache();
298 298
299 299 return $new_instance;