Skip to content

Commit

Permalink
Change flow to not always generate a source object.
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsoo committed Oct 17, 2023
1 parent e946725 commit 94f4eac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/presentations/indexable-term-archive-presentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ public function generate_robots() {
* @return string The title.
*/
public function generate_title() {
if ( is_wp_error( $this->source ) || $this->model->title ) {
if ( $this->model->title ) {
return $this->model->title;
}

if ( is_wp_error( $this->source ) ) {
return $this->model->title;
}

Expand Down

0 comments on commit 94f4eac

Please sign in to comment.