* @param array $instance An array of settings for this widget instance.
*/
public function widget( $args, $instance ) {
- $format = $instance['format'];
+ $format = isset( $instance['format'] ) && in_array( $instance['format'], $this->formats ) ? $instance['format'] : 'aside';
switch ( $format ) {
case 'image':