PHP Fatal error: Uncaught Error: Object of class mcs_subdomain could not be converted to string in WordPress

PHP Fatal error: Uncaught Error: Object of class mcs_subdomain could not be converted to string in WordPress

请帮忙。

存在来自插件的 PHP 错误消息。

PHP 致命错误:未捕获错误:class 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;
}

此代码错误“return $this->$this->subdomain_home;”

如何修复。

return $this->subdomain_home;

只需删除多余的“$this->”