If a plugin requires you to edit your WordPress theme reconsider that plugin. Is it really worth harming the upgrade-ability of your theme just to have that plugin?
Haven’t thought of that before actually
How To Protect Your WordPress Theme AgainstĀ Upgrades
2 years ago