← All changes
|
src/presentations/indexable-author-archive-presentation.php
+3
-5
18.0
→
trunk
View file →
| @@ -50,20 +50,18 @@ | ||
| 50 | 50 | if ( $this->model->canonical ) { |
| 51 | 51 | return $this->model->canonical; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | - $permalink = $this->get_permalink(); | |
| 55 | - | |
| 56 | - if ( ! $permalink ) { | |
| 54 | + if ( ! $this->permalink ) { | |
| 57 | 55 | return ''; |
| 58 | 56 | } |
| 59 | 57 | |
| 60 | 58 | $current_page = $this->pagination->get_current_archive_page_number(); |
| 61 | 59 | if ( $current_page > 1 ) { |
| 62 | - return $this->pagination->get_paginated_url( $permalink, $current_page ); | |
| 60 | + return $this->pagination->get_paginated_url( $this->permalink, $current_page ); | |
| 63 | 61 | } |
| 64 | 62 | |
| 65 | - return $permalink; | |
| 63 | + return $this->permalink; | |
| 66 | 64 | } |
| 67 | 65 | |
| 68 | 66 | /** |
| 69 | 67 | * Generates the title. |