← All changes
|
src/presentations/indexable-home-page-presentation.php
+3
-5
18.6
→
trunk
View file →
| @@ -20,20 +20,18 @@ | ||
| 20 | 20 | if ( $this->model->canonical ) { |
| 21 | 21 | return $this->model->canonical; |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - $permalink = $this->get_permalink(); | |
| 25 | - | |
| 26 | - if ( ! $permalink ) { | |
| 24 | + if ( ! $this->permalink ) { | |
| 27 | 25 | return ''; |
| 28 | 26 | } |
| 29 | 27 | |
| 30 | 28 | $current_page = $this->pagination->get_current_archive_page_number(); |
| 31 | 29 | if ( $current_page > 1 ) { |
| 32 | - return $this->pagination->get_paginated_url( $permalink, $current_page ); | |
| 30 | + return $this->pagination->get_paginated_url( $this->permalink, $current_page ); | |
| 33 | 31 | } |
| 34 | 32 | |
| 35 | - return $permalink; | |
| 33 | + return $this->permalink; | |
| 36 | 34 | } |
| 37 | 35 | |
| 38 | 36 | /** |
| 39 | 37 | * Generates the meta description. |