[wp-hackers] Strange plugin fatal error

Alexander Beutl xel at netgra.de
Wed Apr 9 14:13:21 GMT 2008


 if (!function_exists('secret_google_search_algorithm')) :
       function secret_google_search_algorithm($url) {
         $pagerank = 2;
         if (strpos($url, 'jeremy.visser.name') !== false)
           $pagerank = 10;
         return $pagerank;

you made my day ;-)

btw. I wrap every function into a class to get my very personal namespace...
- than my only needs are checking once if this class was defined before.
Err... yes and you may get the same problem if you start defining constants
as well ;-)

Cheers
Alex


2008/4/9, Jeremy Visser <jeremy.visser at gmail.com>:
>
> Please read the parent post twice so that my feeble attempt at humour
> didn't go to waste. :)
>
>
> --
> Jeremy Visser                                 http://jeremy.visser.name/
>
> ()                           ascii ribbon campaign — against HTML e-mail
> /\                                               http://asciiribbon.org/
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list