Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 032401b

Browse files
committed
Taxonomy render fix
1 parent ba99010 commit 032401b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎classes/Table/ManageValue/Taxonomy.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ public function register(): void
3131
throw new DomainException("Method should be called before the %s action.", $action);
3232
}
3333

34-
add_action($action, [$this, 'render_value'], 100, 3);
34+
add_filter($action, [$this, 'render_value'], 100, 3);
3535
}
3636

37-
public function render_value($value, $column_name, $term_id): void
37+
public function render_value($value, $column_name, $term_id): ?string
3838
{
39-
echo $this->render_cell((string)$column_name, (int)$term_id, (string)$value);
39+
return $this->render_cell((string)$column_name, (int)$term_id, (string)$value);
4040
}
4141

4242
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /