WordPress Plugin Clash

I’ve got to tackle the clashing of my two WordPressPlugin scripts.  On one hand, there’s the simple regular expression issue of mixing render-time processing transforms that create href tags out of plain text (nesting them is really icky.)

But what I had NOT anticipated is the fact that php or WordPress (I’m not sure which) imports the plug-ins into the same namespace, so I’ve either got to give everything retarded prefixes, ‘class’ify the code for namespace partitioning, or use a common library (taking the plugins away from OneFilePerScript land, which I don’t like at all.)

Merging the two plugins is not an option, even though it’s the simplest technical solution available.  The difference between the two at this point is really about three lines of code.

I suppose that simple fact dictates the solution.

Ickypoo.

Tags: ,

Leave a Reply