Created
April 24, 2014 16:52
-
-
Save strangerstudios/11261530 to your computer and use it in GitHub Desktop.
Use TwentyTen theme for XMLPRC Requests.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function xmlrpc_template($template) | |
{ | |
if($_SERVER['SCRIPT_NAME'] == "/xmlrpc.php") | |
return "twentyten"; | |
else | |
return $template; | |
} | |
add_filter('template', 'xmlrpc_template'); | |
add_filter('option_template', 'xmlrpc_template'); | |
add_filter('option_stylesheet', 'xmlrpc_template'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment