[wp-hackers] Class conflicts with plugin frameworks

Jonathon Byrd jon at 5twentystudios.com
Thu Apr 28 00:19:52 UTC 2011

I didn't prefix anything that dealt with the mvc framework as I use these
functions throughout all my plugins. It's just the custom plugin functions
that I prefix.

In every plugin exists my bootstrap file which preloads the mvc framework.
That's what you were wanting to do, no?


Jonathon Byrd | Partner | Senior Software Engineer
5 Twenty Studios, LLC

C: (360) 747-7401 | O: (503) 268-1177 | F: (954) 867-1177
jon at 5twentystudios.com | www.5TwentyStudios.com<http://www.5twentystudios.com/>

On Wed, Apr 27, 2011 at 5:06 PM, Philip Walton <philip at philipwalton.com>wrote:

> Yeah, see, prefixing everything manually is exactly what I don't want to
> do, perhaps it's the only way, but I'm hoping to find a better solution.
> I was thinking it could be possible to dynamically prefix the classes in
> some sort of init() function that each plugin calls, but I haven't
> experimented with this at all.
> On 4/27/11 3:45 PM, Jonathon Byrd wrote:
>> prefixing every function, constant and global with the same three chars
>> throughout each plugin has eliminated 99% of conflicts.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list