Today’s lesson comes from @Nacin (and as posted here):

“When a plugin goes through the activation process, it gets included *after* pluggable.php gets included. During the load process, it gets included before.

Any plugin overriding a pluggable function should take care to wrap their function definition in a function_exists check, not only to play nice with the activation process, but also with other plugins.”

Advertisements