8000 Fix small problems in Recent Posts widget by benlk · Pull Request #1111 · WPBuddy/largo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix small problems in Recent Posts widget #1111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inc/related-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ protected function get_term_posts() {
$taxonomies = get_the_terms( $this->post_id, array('category', 'post_tag') );

//loop thru taxonomies, much like series, and get posts
if ( count($taxonomies) ) {
if ( is_array($taxonomies) ) {
//sort by popularity
usort( $taxonomies, array(__CLASS__, 'popularity_sort' ) );

Expand Down
3 changes: 1 addition & 2 deletions inc/widgets/largo-related-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ function widget( $args, $instance ) {
?>
<h4><a href="<?php the_permalink(); ?>" title="Read: <?php esc_attr( the_title('','', FALSE) ); ?>"><?php the_title(); ?></a></h4>
<h5 class="byline">
<span class="by-author"><?php largo_byline( true, true ); ?></span>
<time class="entry-date updated dtstamp pubdate" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php largo_time(); ?></time>
<span class="by-author"><?php largo_byline( true, false ); ?></span>
</h5>
<?php // post excerpt/summary
largo_excerpt(get_the_ID(), 2, false, '', true);
Expand Down
0