bug. will get api.php from first place it finds it
-
Found a bug. I put a file named api.php in root of site with no hooks or calls into wordpress. It works fine. I open up a page of the wordpress site and Types is pulling that api.php file and imbedding it into my site.
When I turn off Types wordpress works as expected. If I rename api.php to another name it works as normal.
It looks like:
/wp-content/plugins/types/embedded/common/toolset-forms/bootstrap.phphas this at line 7:
require_once 'api.php';
is actually grabbing the first api.php file it finds in the path. I changed that line to
require_once dirname(__FILE__).'/api.php';
And that fixed the issue.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘bug. will get api.php from first place it finds it’ is closed to new replies.