修改了git clone的Wordpress文件(行结尾,文件模式或gitattributes没有帮助)

I'm aware certain changes may occur when cloning a repo from one OS to a different OS. However, this is not just newlines added or space formatting (but that is also happening). Chunks of code have been removed and modified completely.

I see newly added blocks, functions, .esc_attr and .esc_html tags.

I've played with .gitattributes files, set different core.autocrlf values and core.filemode values - nothing worked.

Also strange that only a subset of php files were modified. All located under Ultimate_VC_Addons.

git status image git diff image

Any help is appreciated.

Thank you.