fixing bug when no post id in homegrade_brochure_post_title_updater

This commit is contained in:
Antoine M 2023-11-29 19:26:39 +01:00
parent 4e2978ce0d
commit e21912d2ca

View File

@ -5,6 +5,7 @@ function homegrade_brochure_post_title_updater($post_id)
$my_post = array();
$my_post['ID'] = $post_id;
if (!$post_id) return
$brochureTaxonomy = get_the_terms($post_id, 'thematiques')[0];