Is this action even necessary?<div><br></div><div>A Theme can't be uninstalled through the Admin UI unless it is deactivated. If it's already deactivated, then the user has already selected another active Theme (or WordPress has already reverted - or attempted to revert - to the default Theme).</div>
<div><br></div><div>Or am I missing something?</div><div><br></div><div>Chip<br><br><div class="gmail_quote">On Wed, Jan 19, 2011 at 9:39 AM, Simon Prosser <span dir="ltr"><<a href="mailto:pross@pross.org.uk">pross@pross.org.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 01/19/11 15:31, Syahir Hakim wrote:<br>
> I used Dreamweaver's search function, and there's no occurrence of<br>
> 'twentyten' inside __() or _e().<br>
><br>
> Correcting my previous email, there's actually two occurrences of the<br>
> string 'twentyten', which is inside the theme's uninstall script, which<br>
> switches to the twentyten theme after deleting my theme's database entries.<br>
><br>
> This is the line:<br>
> switch_theme('twentyten', 'twentyten');<br>
><br>
> If I comment out that line, theme-check does not show any warning and<br>
> show that the theme passes the check. Uncomment that line, and the<br>
> warning appears.<br>
</div>Thats what its designed to do ;)<br>
<br>
So you switch back to twentyten when a use uninstalles your theme?<br>
assuming of course the user HAS TwentyTen still installed, what if he<br>
does not?<br>
<font color="#888888"><br>
--<br>
My Blog: <a href="http://www.pross.org.uk/" target="_blank">http://www.pross.org.uk/</a><br>
Plugins: <a href="http://www.pross.org.uk/plugins/" target="_blank">http://www.pross.org.uk/plugins/</a><br>
Themes : <a href="http://wordpress.org/extend/themes/profile/pross" target="_blank">http://wordpress.org/extend/themes/profile/pross</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</div></div></blockquote></div><br></div>