Skip to content

Commit

Permalink
Merge pull request #1588 from INN/1405-recent-posts-title
Browse files Browse the repository at this point in the history
Lets the Recent Posts Widget have an empty title,
  • Loading branch information
benlk authored Dec 7, 2018
2 parents e77756f + 4deeebe commit a227fd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This release contains bugfixes for Largo 0.6.

- Updates templates to make sure that bylines are output. [Pull request #1574](https://github.com/INN/largo/pull/1574).
- Allows the Largo Taxonomy List Widget to have an empty title. [Pull request #1583](https://github.com/INN/largo/pull/1583) for [issue #1581](https://github.com/INN/largo/issues/1581).
- Allows the Largo Recent Posts Widget to have an empty title. [Pull request #1588](https://github.com/INN/largo/pull/1588) for [issue #1405](https://github.com/INN/largo/issues/1405).

## [Largo 0.6](https://github.com/INN/largo/compare/v0.5.5.4...v0.6)

Expand Down
2 changes: 1 addition & 1 deletion inc/widgets/largo-recent-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function widget( $args, $instance ) {
$posts_term = of_get_option( 'posts_term_plural', 'Posts' );

// Add the link to the title.
$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Recent ' . $posts_term, 'largo' ) : $instance['title'], $instance, $this->id_base );
$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );

echo $args['before_widget'];

Expand Down

0 comments on commit a227fd0

Please sign in to comment.