Unspecific loading of functions.php | WordPress.org

[ad_1]

I just upgraded a site to Ajaxify Comments 2.0.5, and had issues with how you require functions.php on line 40 of wp-ajaxify-comments.php.

Because you’re unspecific about which functions.php you’re requiring, I had a case where it was the theme’s functions.php that was included instead of yours. (My file lives inside the theme, but is called directly.)

I changed require_once 'functions.php' to require_once __DIR__ . '/functions.php' in your file and it solved my problem, but I’d appreciate if you do the same in a future release, so I don’t have to patch it again. 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer