Wordpress include(“../../../wp-blog-header”); failing

后端 未结 4 1977
慢半拍i
慢半拍i 2020-12-19 20:03

I am currently working on a plugin for Wordpress involving lots of .php files. I see that for my AddShift.php file, we are successfully importing the blog header using the f

4条回答
  •  有刺的猬
    2020-12-19 20:34

    Yes - I believe wordpress operates a security mechanism on content in the wp-content directory, I had the same problem with themes. The workaround I used was to include with absolute path names.

提交回复
热议问题