thomasgriffin/TGM-Plugin-Activation — Issue #68: Apply some defensive coding against multiple occurrences
Author: GaryJones
Created: 2011-11-28 10:07:45+00:00
State: open

It is entirely possible that a plugin may want to include our class, to suggest partner plugins (or perhaps individual modules of one plugin system) - as such, we should consider what happens if the plugin using our code, is activated on a site where the theme also uses it.

First, it to wrap the classes in a `class_exists()`, and the function in a `function_exists()`, to stop everything being defined twice.

Next is to check the example.php - I *think* that as long as the register slug is different, there shouldn't be any parsing errors - the issue comes with the config strings etc. as calls to `tgmpa()` try to always use the same instantiation.