Replies: 0
I’m getting the following entry in debug.log
PHP Notice: Trying to get property of non-object in /plugins/wp-seopress/inc/functions/options-redirections.php on line 18
Line 18 is the 1st line in this function:
function seopress_redirections_term_enabled() {
$_seopress_redirections_enabled = get_term_meta(get_queried_object()->{'term_id'},'_seopress_redirections_enabled',true);
if ($_seopress_redirections_enabled != '') {
return $_seopress_redirections_enabled;
}
}
Actually, I don’t have any _seopress_redirections_enabled keys in wp_postmeta. Otherwise, I don’t know what might be wrong. Please advise.
Thanks.