我已经尝试了一切,我根据人们的建议替换并添加了新代码,但没有任何改进。我仍然有同样的错误。
到目前为止没有任何效果...如果有人能帮助我,我将不胜感激。
小智 10
打开这个文件:
wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php
将此代码添加到该文件的第 46 行:
if (method_exists($class_name, "get_site_editor_type")) {
然后用 关闭if第 54 行}。
最终结果如下所示:
if (method_exists($class_name, "get_site_editor_type")) {
    $reflection = new \ReflectionClass( $class_name );
    $method = $reflection->getMethod( 'get_site_editor_type' );
    // It's own method, use it.
    if ( $class_name === $method->class ) {
        return static::get_site_editor_type();
    }
}
Run Code Online (Sandbox Code Playgroud)
        |   归档时间:  |  
           
  |  
        
|   查看次数:  |  
           2816 次  |  
        
|   最近记录:  |