我的网站反复显示严重错误消息。当我调试它时,显示脚本中缺少某些代码行。我们有多个管理员的网站。如何知道是否有人在编辑?如果不是人为的努力,有没有可能发生这种情况?
示例
原文:
mammoth_load_script( 'mammoth-editor' );
mammoth_load_script( 'tabs' );
}
function mammoth_load_script( $name ) {
$url = plugins_url( 'mammoth-docx-converter/' . $name . '.js' );
echo '<script src="'. $url . '?v=1.17.0"></script>';
}在我的后台:
}
}
function mammoth_load_script( $name ) {
$url = plugins_url( 'mammoth-docx-converter/' . $name . '.js' );
echo '<script src="'. $url . '?v=1.17.0"></script>';
}
function mammoth_editor_stylesheets_list( ) {
return implode( ',', get_editor_stylesheets() );
}它几乎发生在代码的所有部分。wp-include和wp-admin等文件中缺少的代码。
有什么解决方案可以监控这一点吗?
发布于 2021-03-09 12:03:02
这个项目是在github上的吗?如果是这样,你可以使用Github桌面。它突出了开发人员更改代码所做的更改。此外,它还具有历史特征。
https://stackoverflow.com/questions/66540142
复制相似问题