Php 当切换到新的wordpress文件夹结构时,我得到;无法打开文件&引用;添加post时出错
我正在更改wp安装的文件结构,以允许版本控制,并将wordpress用作git子模块。除了我在添加帖子时出现“无法打开文件!”错误外,这一更改似乎一切正常(见下文)。这发生在我尝试的任何post类型(我有3种不同的类型)中,似乎错误发生在文件“post new.php”中的get_default_post_to_edit()处。有什么想法吗?提前谢谢 旧文件结构:Php 当切换到新的wordpress文件夹结构时,我得到;无法打开文件&引用;添加post时出错,php,wordpress,git,wordpress-theming,Php,Wordpress,Git,Wordpress Theming,我正在更改wp安装的文件结构,以允许版本控制,并将wordpress用作git子模块。除了我在添加帖子时出现“无法打开文件!”错误外,这一更改似乎一切正常(见下文)。这发生在我尝试的任何post类型(我有3种不同的类型)中,似乎错误发生在文件“post new.php”中的get_default_post_to_edit()处。有什么想法吗?提前谢谢 旧文件结构: wp-admin wp-content wp-includes etc... content themes
wp-admin
wp-content
wp-includes
etc...
content
themes
plugins
uploads
wp (git submodule)
wp-admin
wp-content
wp-includes
etc...
新文件结构:
wp-admin
wp-content
wp-includes
etc...
content
themes
plugins
uploads
wp (git submodule)
wp-admin
wp-content
wp-includes
etc...
事实证明,这只是一个问题,当你登录到wordpress和查看网站与顶部管理wordpress栏。否则功能正常