Skip to content

Commit

Permalink
corrige widget coringa, não pega mais o titulo do backend quando o do…
Browse files Browse the repository at this point in the history
… frotn nao esta preenchido
  • Loading branch information
willowmagrini committed Jul 23, 2018
1 parent 2806a90 commit 44b03ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/widgets/class-widget-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct() {
public function widget( $args, $instance ) {

/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
// $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
if ( ! empty( $instance[ 'title_front'] ) ) {
$title = apply_filters( 'the_title', $instance[ 'title_front' ] );
}
Expand Down

0 comments on commit 44b03ee

Please sign in to comment.