• 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.php

    has 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)
  • Anonymous User 14808221

    (@anonymized-14808221)

    Thank you for reporting this.
    I will inform the DEV team in regard, so to provide a fix in the next release if applicable.

    thank you again for the Bug Report.

Viewing 1 replies (of 1 total)
  • The topic ‘bug. will get api.php from first place it finds it’ is closed to new replies.