fix: return value function `get_item_link` #572

This commit is contained in:
vnmedeiros 2021-07-26 11:51:17 -03:00
parent 9bcf653d4d
commit 629b462686
1 changed files with 2 additions and 1 deletions

View File

@ -257,9 +257,10 @@ class Relationship extends Metadata_Type {
\is_post_status_viewable($item->get_collection()->get_status()) ) { \is_post_status_viewable($item->get_collection()->get_status()) ) {
$return = "<a data-linkto='item' data-id='$id' href='$link'> $value </a>"; $return = "<a data-linkto='item' data-id='$id' href='$link'> $value </a>";
} else { } else {
$return = "<div>$value:</div>"; $return = $value;
} }
} }
return $return;
} }
private function get_meta_html(\Tainacan\Entities\Item_Metadata_Entity $meta, $value_link = false) { private function get_meta_html(\Tainacan\Entities\Item_Metadata_Entity $meta, $value_link = false) {