← All changes
|
src/presentations/indexable-static-posts-page-presentation.php
+3
-4
19.0
→
trunk
View file →
| @@ -30,15 +30,14 @@ | ||
| 30 | 30 | return $this->model->canonical; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | $current_page = $this->pagination->get_current_archive_page_number(); |
| 34 | - $permalink = $this->get_permalink(); | |
| 35 | 34 | |
| 36 | 35 | if ( $current_page > 1 ) { |
| 37 | - return $this->pagination->get_paginated_url( $permalink, $current_page ); | |
| 36 | + return $this->pagination->get_paginated_url( $this->permalink, $current_page ); | |
| 38 | 37 | } |
| 39 | 38 | |
| 40 | - return $permalink; | |
| 39 | + return $this->permalink; | |
| 41 | 40 | } |
| 42 | 41 | |
| 43 | 42 | /** |
| 44 | 43 | * Generates the Open Graph URL. |
| @@ -45,7 +44,7 @@ | ||
| 45 | 44 | * |
| 46 | 45 | * @return string The Open Graph URL. |
| 47 | 46 | */ |
| 48 | 47 | public function generate_open_graph_url() { |
| 49 | - return $this->get_permalink(); | |
| 48 | + return $this->permalink; | |
| 50 | 49 | } |
| 51 | 50 | } |