{"id":649,"date":"2006-08-23T18:12:24","date_gmt":"2006-08-23T15:12:24","guid":{"rendered":"http:\/\/www.mummila.net\/nuudelisoppa\/index.php\/?p=649"},"modified":"2011-07-28T11:52:26","modified_gmt":"2011-07-28T08:52:26","slug":"theme-switcher-fixing-the-theme-editor-breakage","status":"publish","type":"post","link":"https:\/\/mummila.net\/nuudelisoppa\/2006\/08\/23\/theme-switcher-fixing-the-theme-editor-breakage\/","title":{"rendered":"Theme Switcher: fixing the theme editor breakage"},"content":{"rendered":"<p>Version 2.0 of <a href=\"http:\/\/386a.net\/blog\/wordpress\/theme-switcher\/\">Mr Peer&#8217;s Theme Switcher<\/a> is would be perfect, if it weren&#8217;t for the unfortunate breaking of WordPress&#8217; built-in theme editor, causing all requests to open files for editing be redirected to the home page. The problem seems to be the <code>theme<\/code> parameter, which is used by both the built-in editor and Theme Switcher.<\/p>\n<p>Fixing this issue seemed to be as simple as replacing all isolated mentionings of <code>theme<\/code> in the plugin source with a new, non-ambiguous keyword. I chose <code>switchto<\/code>, and <a href='http:\/\/mummila.net\/nuudelisoppa\/files\/2006\/08\/theme-switcher.php_.txt'>the resulting code<\/a> is available behind the previous link.<\/p>\n<p>So, the parameter to switch themes with this modified version of the plugin is <code>switchto=themename<\/code>, and this eliminates the problem with the theme editor. Otherwise it should be identical to the original in functionality.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Version 2.0 of Mr Peer&#8217;s Theme Switcher is would be perfect, if it weren&#8217;t for the unfortunate breaking of WordPress&#8217; built-in theme editor, causing all requests to open files for editing be redirected to the home page. The problem seems to be the theme parameter, which is used by both the built-in editor and Theme [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[30,29,20],"class_list":["post-649","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-bugsglitches","tag-hacks-tweaks","tag-software"],"_links":{"self":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/comments?post=649"}],"version-history":[{"count":2,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/649\/revisions"}],"predecessor-version":[{"id":2983,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/649\/revisions\/2983"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/media?parent=649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/categories?post=649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/tags?post=649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}