주의 : 638 행의 /var/www/admin/data/www/test.com/wp-content/themes/bd/inc/blt-functions.php에서 객체가 아닌 속성을 얻으려고합니다.
if(!function_exists('blt_get_comment')){
function blt_get_comment($comment, $args, $depth){
(LINE 638) $author_comment_id = get_user_by('email', get_comment_author_email())->ID;
$comment_score = get_comment_meta( get_comment_ID(), 'blt_score', true );
if(empty($comment_score)){
$comment_score = 0;
}
이는 get_user_by
returning FALSE
이며 사용자를 찾을 수 없음을 의미합니다. 다음과 같이 확인해야합니다.
$user = get_user_by('email', get_comment_author_email());
$author_comment_id = (($user != FALSE) ? $user->ID : 0);
//or a check like this
if(!$user)
{
return false;
}
$author_comment_id
0이 아닌 경우 나중에 확인하는 것이 좋습니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다