Merge branch 'develop' of https://github.com/tainacan/tainacan into develop

This commit is contained in:
weryques 2018-12-14 15:24:52 -02:00
commit 9ea8294b86
1 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ class Theme_Helper {
/**
* Filters the permalink for posts to:
*
* * Replace Collectino single permalink with the link to the post type archive for items of that collection
* * Replace Collection single permalink with the link to the post type archive for items of that collection
*
* @return string new permalink
*/
@ -192,7 +192,7 @@ class Theme_Helper {
$post_type_object = get_post_type_object($items_post_type);
if (isset($post_type_object->rewrite) && is_array($post_type_object->rewrite) && isset($post_type_object->rewrite['slug']))
return site_url($post_type_object->rewrite['slug']);
return get_post_type_archive_link($items_post_type);
}