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/facebook-likebox.php +4 -4 16.2 → 16.3-beta View file →
@@ -216,15 +216,15 @@
216 216 */
217 217 public function update( $new_instance, $old_instance ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
218 218 $instance = array();
219 219
220 - $instance['title'] = trim( wp_strip_all_tags( stripslashes( $new_instance['title'] ) ) );
220 + $instance['title'] = trim( wp_strip_all_tags( stripslashes( $new_instance['title'] ?? '' ) ) );
221 221
222 222 // Set up widget values.
223 223 $instance['like_args'] = array(
224 - 'href' => trim( wp_strip_all_tags( stripslashes( $new_instance['href'] ) ) ),
225 - 'width' => (int) $new_instance['width'],
226 - 'height' => (int) $new_instance['height'],
224 + 'href' => trim( wp_strip_all_tags( stripslashes( $new_instance['href'] ?? '' ) ) ),
225 + 'width' => (int) ( $new_instance['width'] ?? $this->default_width ),
226 + 'height' => (int) ( $new_instance['height'] ?? $this->default_height ),
227 227 'show_faces' => isset( $new_instance['show_faces'] ),
228 228 'stream' => isset( $new_instance['stream'] ),
229 229 'cover' => isset( $new_instance['cover'] ),
230 230 'small_header' => isset( $new_instance['small_header'] ),