Conversation
supportPHP Fatal error: Cannot redeclare ep() Sprout Invoices uses this same declaration. Had to tweak a bit but thanks for the useful tool.
Thanks for the heads up. I wrote those functions in bobbfunc.php back in 2009, before I started writing any code for a WordPress plugin. In those days I didn’t know about namespaces and/or PHP classes. Can you confirm the tweaks you needed to make?
I changed the function name and updated all references to ‘ep’ adding a prefix ‘bw_ep’ and all was good.
Oops, I forgot to update this when I released oik-bwtrace v4.0.0. That’s similar to the solution I used in my fix. I also renamed wp() to bw_ep() . But to avoid version dependency problems I changed all my plugins that used wp() to call bw_echo( '</p>' ) instead.
Thanks for the heads up. I wrote those functions in bobbfunc.php back in 2009, before I started writing any code for a WordPress plugin. In those days I didn’t know about namespaces and/or PHP classes. Can you confirm the tweaks you needed to make?
I changed the function name and updated all references to ‘ep’ adding a prefix ‘bw_ep’ and all was good.
Oops, I forgot to update this when I released oik-bwtrace v4.0.0. That’s similar to the solution I used in my fix. I also renamed wp() to bw_ep() . But to avoid version dependency problems I changed all my plugins that used wp() to call bw_echo( '</p>' ) instead.