[ENH] Added the includ_*.php file check for addons as well for generating a CSRF ticket for preferences.