mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 14:43:49 +09:00
- added fixes for WP5.8 version;
This commit is contained in:
@@ -41,7 +41,8 @@ class UM_Search_Widget extends \WP_Widget {
|
||||
*/
|
||||
public function widget( $args, $instance ) {
|
||||
|
||||
$title = apply_filters( 'widget_title', $instance['title'] );
|
||||
$title = array_key_exists( 'title', $instance ) ? $instance['title'] : '';
|
||||
$title = apply_filters( 'widget_title', $title );
|
||||
|
||||
// before and after widget arguments are defined by themes
|
||||
echo $args['before_widget'];
|
||||
@@ -107,4 +108,4 @@ class UM_Search_Widget extends \WP_Widget {
|
||||
return $instance;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user