[wp-hackers] plugin activation help

Curtis McHale curtis at curtismchale.ca
Tue Aug 31 23:52:23 UTC 2010


I thought that was already the recommended best practice. Every function 
you write for a plugin or a theme should be prefixed to make sure it 
doesn't duplicate another plugin or theme.

Raj wrote:
> If only I had a dime for every time that happens. I'd be making more than I
> am through donations.
>
> It seems everybody likes to name their functions:
>
> sanitize()
> validateEmail()
> validate()
> strip()
> ... and so on.
>
> Perhaps we could all adopt the gentleman's code - prefix every single
> function uniquely :P
>
>
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com
> [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Rich Pedley
> Sent: Wednesday, September 01, 2010 3:18 AM
> To: wp-hackers at lists.automattic.com
> Subject: [wp-hackers] plugin activation help
>
> I'm getting a couple of people post about some issues when activating
> my plugin eShop.
>
> Fatal error: Cannot redeclare add_user() (previously declared in
> C:\Inetpub\vhosts\ellcee.com\httpdocs\blog\wordpressDEV\wp-admin\includes\us
> er.php:23)
> in
> C:\Inetpub\vhosts\ellcee.com\httpdocs\blog\wordpressDEV\wp-admin\includes\us
> er.php
> on line 44
>
> &
>
> Fatal error: Cannot redeclare add_user() (previously declared in
> C:\inetpub\vhosts\mydomain.com\httpdocs\store\wp-admin\includes\user.php:23)
>
> in
> C:\inetpub\vhosts\mydomain.com\httpdocs\store\wp-admin\includes\user.php
> on line 44
>
>
> Obviously I can't replicate this myself.
>
> Any ideas on what would be causing this? Or tips on how to help them
> without access to anything at their end?
>
> Any help appreciated.
>
> Rich
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

-- 
Curtis McHale

604.751.3482
http://curtismchale.ca
http://twitter.com/curtismchale
http://ca.linkedin.com/in/curtismchale



More information about the wp-hackers mailing list