Skip to content

Commit

Permalink
fixed prev/next which were reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
jarednova committed Oct 25, 2013
1 parent dd1dbac commit 75ed994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/timber-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,14 @@ function get_link() {

function get_next() {
if (!isset($this->next)){
$this->next = new $this->PostClass(get_adjacent_post( false, "", true ));
$this->next = new $this->PostClass(get_adjacent_post( false, "", false ));
}
return $this->next;
}

function get_prev() {
if (!isset($this->prev)){
$this->prev = new $this->PostClass(get_adjacent_post( false, "", false ));
$this->prev = new $this->PostClass(get_adjacent_post( false, "", true ));
}
return $this->prev;
}
Expand Down

1 comment on commit 75ed994

@thisislawatts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah how foolish of me, thanks for tidying that up.

Please sign in to comment.