Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Sébastien

Conflict with api.php

Hi all

I used to use an api.php file in my theme to make some ajax stuff, I have a grunt.php file to, in the same place to do some Grunt stuff.
The issue when the plugin Admin Columns is loaded is that when I load WP programmatically (in my grunt.php file)

define('WP_USE_THEMES', false);
require_once(dirname(__FILE__).'/../../../wp-load.php');

it’s load my api.php file, not your, because of the line 65 in the file cac-addon-acf/cac-addon-acf.php

require_once 'api.php';

It’s only need to be modified to

require_once dirname(__FILE__).'/api.php';

to work like a charm

Thank you

8 years, 1 month ago
Stefan van den Dungen Gronovius
Developer

Thanks for your input.
We renamed the file to utility and also used the require_once like you mentioned.
The change will be released in our 3.8 release.
If you like the ACF addon to test, please send me an email to support@admincolumns.com so I can send you the package.

8 years, 1 month ago

You must be logged in to reply to this topic.