fixing bug when no post id in homegrade_brochure_post_title_updater
This commit is contained in:
parent
4e2978ce0d
commit
e21912d2ca
|
|
@ -5,8 +5,9 @@ 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];
|
||||
$brochureTaxonomy = get_the_terms($post_id, 'thematiques')[0];
|
||||
|
||||
// write_log($brochureTaxonomy);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user