请帮帮忙。
有一个来自插件的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->子域_home;”
如何修补。
发布于 2022-05-28 03:55:45
return $this->subdomain_home;
只需删除额外的"$this->“
https://stackoverflow.com/questions/72412728
复制相似问题