File get http status 404 but is served !
|Reported by:||maximeh||Owned by:|
I have recently upgraded my installation of wordpress from 2.9.2 to 3.0 and the only things that did not work was my archive plugin... After a few research, it appeared that the .js.php file included by the plugin in my page got a 404 status.
I also noticed that even if the return code was 404, the file was served by apache.
I went chasing header function in the wordpress code and using my dearest friend : grep and diff.
A line was modified from 2.9.2 but not for the better...
Here is the patch that made thing working for me as I'm not familiar with Wordpress code, I'm not sure I did write. I checked but did not found any tickets that had some similarity with this one but my config is standard : apache 2.2.14 with php 5.3.2 (ubuntu flavor).
My patch revert the if statement to 2.9.2 it's maybe not the best way (if this condition was removed it's surely for a reason) but my file is no longer served with a 404 return code.