What are you actually trying to circumvent with an mu plugin?
I’m trying to add an option to select a theme at signup. it works but the code uses this line to get the theme’s thumbnail.
<img style="margin-left:40px;display:block;" width="185" height="126" alt="" src="'.WP_CONTENT_URL.$theme['Template Dir']."/".$theme['Screenshot'].'" />
outputs
http://mydomain.com/wp-content/home/username/public_html/wp-content/themes/twenty-ten/screenshot.png
But I need
http://mydomain.com/wp-content/themes/twenty-ten/screenshot.png
Thanks.
Thanks that did help to segment the uri so I could build my link semi-dynamically.
src="'.network_home_url()."/wp-content/themes/".$theme['Stylesheet']."/".$theme['Screenshot'].'"
This get’s the what I need from an array so each theme shows it’s thumbnail. I’d like to eliminate the hard-coded part but this works for now.
Thanks again
There should be a function for that too…
http://codex.wordpress.org/Function_Reference/get_template_directory grabs the ‘current’ theme directory, though, which isn’t right. Try looking down that line, though.