WordPress auth for DokuWiki broken
Broken again, to be precise. But this time it's DokuWiki's fault. Ok, actually it's PHP's fault. One of the recent commits to the DokuWiki code introduced the function is_ssl(). Unfortunately WordPress also defines a function with that name and due to the fact that the WordPress auth module for DokuWiki loads WordPress, this results in the error:
PHP Fatal error: Cannot redeclare is_ssl() (previously declared in /.../wiki/inc/init.php:378) in /.../wp-includes/functions.php on line 2268
Name collisions. We should be beyond that in 2008. *sigh*
Anyway, I was reluctant to add
if ( !function_exists('is_ssl') ) :
...
endif;
around WordPress' implementation of is_ssl(), but couldn't think of any better way. At least the two implementations do roughly the same thing, so it seems it will be one more core file that has to be looked into on every update. :-(