| @@ -32,18 +32,18 @@ | ||
| 32 | 32 | public function find_by_post_id_and_taxonomy( $post_id, $taxonomy, $auto_create = true ) { |
| 33 | 33 | /** |
| 34 | 34 | * Instance of the primary term. |
| 35 | 35 | * |
| 36 | - * @var Primary_Term $primary_term | |
| 36 | + * @var Primary_Term $primary_term_indexable | |
| 37 | 37 | */ |
| 38 | - $primary_term = $this->query() | |
| 38 | + $primary_term_indexable = $this->query() | |
| 39 | 39 | ->where( 'post_id', $post_id ) |
| 40 | 40 | ->where( 'taxonomy', $taxonomy ) |
| 41 | 41 | ->find_one(); |
| 42 | 42 | |
| 43 | - if ( $auto_create && ! $primary_term ) { | |
| 44 | - $primary_term = $this->query()->create(); | |
| 43 | + if ( $auto_create && ! $primary_term_indexable ) { | |
| 44 | + $primary_term_indexable = $this->query()->create(); | |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - return $primary_term; | |
| 47 | + return $primary_term_indexable; | |
| 48 | 48 | } |
| 49 | 49 | } |