Skip to content

Commit

Permalink
Correcting apply filters call to pass instance for widget title text …
Browse files Browse the repository at this point in the history
…and url check
  • Loading branch information
seanchayes committed Oct 18, 2019
1 parent 8f2bb14 commit 34ba1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/widgets/largo-facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function __construct() {

function widget( $args, $instance ) {

$instance['title'] = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'] );
$instance['title'] = apply_filters( 'widget_title', ( empty( $instance['title'] ) ? '' : $instance['title'] ), $instance ) ;
echo $args['before_widget'];

if ( !empty( $instance['title'] ) ) { echo $args['before_title'] . $instance['title'] . $args['after_title']; }
Expand Down

0 comments on commit 34ba1e3

Please sign in to comment.