Skip to content

Commit 314b3d6

Browse files
mseymourtorounit
andauthored
Update CPTP/Module/Permalink.php
Misnamed variable. Co-authored-by: Hiroshi Urabe <[email protected]>
1 parent 70ba4bf commit 314b3d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CPTP/Module/Permalink.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ public function term_link( $termlink, $term, $taxonomy ) {
418418
$termlink = str_replace( $wp_home, $wp_home . '/' . $slug, $termlink );
419419
}
420420

421-
if ( $axonomy->rewrite !== false && ! $taxonomy->rewrite['hierarchical'] ) {
421+
if ( $taxonomy->rewrite !== false && ! $taxonomy->rewrite['hierarchical'] ) {
422422
$termlink = str_replace( $term->slug . '/', CPTP_Util::get_taxonomy_parents_slug( $term->term_id, $taxonomy->name, '/', true ), $termlink );
423423
}
424424

0 commit comments

Comments
 (0)