Skip to content

Finally figured out what was going on with …

Finally figured out what was going on with one of my WordPress plugins. It relies on Composer, you see, and to avoid version conflicts, I’d decided to give “namespace prefixing” a try. (If multiple plugins try to autoload the same class, whichever plugin is included first wins, which could cause issues if another plugin relies on a different version of said class.) With “prefixing,” though, it seems the second, identical but differently name(space)d class will not get loaded at all. (Who knew!?)

Replies

  1. Jan Boddez Jan Boddez on

    That’s not entirely correct, but whatevs.

    Via jan.boddez.net, in reply to Finally figured out what was going on with ….