Fixes null error when search result is empty.

This commit is contained in:
mateuswetah 2020-08-12 09:21:48 -03:00
parent eb5bf6053b
commit 02398e3ed1
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ function tainacan_interface_the_breadcrumb() {
if ( defined ( 'TAINACAN_VERSION' ) ) {
$theme_helper = \Tainacan\Theme_Helper::get_instance();
if ($theme_helper->is_post_an_item(get_post()) && is_single() && get_theme_mod('tainacan_single_item_show_navigation_options', false)) {
if (get_post() && $theme_helper->is_post_an_item(get_post()) && is_single() && get_theme_mod('tainacan_single_item_show_navigation_options', false)) {
$adjacent_links = tainacan_get_adjacent_item_links();
$previous = $adjacent_links['previous'];

File diff suppressed because one or more lines are too long