| @@ -44,9 +44,9 @@ | ||
| 44 | 44 | if ( ! empty( $title ) ) { |
| 45 | 45 | echo $args['before_title'] . $title . $args['after_title']; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - echo '<a href="' . esc_url( home_url( '/friends/?refresh' ) ) . '">' . esc_html__( 'Refresh', 'friends' ) . '</a>'; | |
| 48 | + echo '<h5><span class="dashicons dashicons-update"></span> <a href="' . esc_url( home_url( '/friends/?refresh' ) ) . '">' . esc_html__( 'Refresh', 'friends' ) . '</a></h5>'; | |
| 49 | 49 | |
| 50 | 50 | echo $args['after_widget']; |
| 51 | 51 | } |
| 52 | 52 | |
| @@ -58,9 +58,9 @@ | ||
| 58 | 58 | * @param array $old_instance Old settings. |
| 59 | 59 | * @return array Sanitized instance settings. |
| 60 | 60 | */ |
| 61 | 61 | public function update( $new_instance, $old_instance ) { |
| 62 | - $instance = $this->defaults; | |
| 62 | + $instance = $this->defaults(); | |
| 63 | 63 | |
| 64 | 64 | return $instance; |
| 65 | 65 | } |
| 66 | 66 | |