請幫忙。
有來自插件的 PHP 錯誤訊息。
PHP 致命錯誤:未捕獲的錯誤:mcs_subdomain 類的物件無法轉換為字串
public function bloginfo_url($output, $show ) {
if('url' == $show)
return $this->$this->subdomain_home;
if( $show == 'rdf_url' || $show == 'rss_url' || $show == 'rss2_url' || $show == 'atom_url') {
return $this->replace_to_subdomain_link( $this->subdomain->slug, $output );
}
return $output;
}
此代碼錯誤“回傳 $this->$this->subdomain_home;”
怎么修。
uj5u.com熱心網友回復:
return $this->subdomain_home;
只需洗掉額外的“$this->”
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/482241.html
上一篇:如何在ACF中添加ifelse
