Is this action even necessary?<div><br></div><div>A Theme can&#39;t be uninstalled through the Admin UI unless it is deactivated. If it&#39;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">&lt;<a href="mailto:pross@pross.org.uk">pross@pross.org.uk</a>&gt;</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>
&gt; I used Dreamweaver&#39;s search function, and there&#39;s no occurrence of<br>
&gt; &#39;twentyten&#39; inside __() or _e().<br>
&gt;<br>
&gt; Correcting my previous email, there&#39;s actually two occurrences of the<br>
&gt; string &#39;twentyten&#39;, which is inside the theme&#39;s uninstall script, which<br>
&gt; switches to the twentyten theme after deleting my theme&#39;s database entries.<br>
&gt;<br>
&gt; This is the line:<br>
&gt; switch_theme(&#39;twentyten&#39;, &#39;twentyten&#39;);<br>
&gt;<br>
&gt; If I comment out that line, theme-check does not show any warning and<br>
&gt; show that the theme passes the check. Uncomment that line, and the<br>
&gt; 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>