dmolsen / Detector

Detector is a simple, PHP- and JavaScript-based browser- and feature-detection library that can adapt to new devices & browsers on its own without the need to pull from a central database of browser information.
http://detector.dmolsen.com/
MIT License
844 stars 80 forks source link

Detector in Wordpress bugs out XMLRPC #23

Open michaelschofield opened 11 years ago

michaelschofield commented 11 years ago

I didn't have an issue incorporating Detector into my theme by literally dropping said directory into the theme directory then requiring it from functions. In terms of functionality it was a breeze.

What I discovered belatedly when having to connect to Wordpress to enable Jetpack was the following alert:

Error Details: The Jetpack server could not communicate with your site's XML-RPC URL. Please check to make sure http://www.example.com/ is working properly. It should show 'XML‑RPC server accepts POST requests only.' on a line by itself when viewed in a browser and should not have any blank links or extra output anywhere.

What happens when visiting /xmlrpc.php is just an endless loop. Commenting out Detector from functions.php let xmlrpc.php resolve correctly.