Hi all,<br>I&#39;ve created the Clear Line theme (<a href="http://themes.trac.wordpress.org/ticket/2203">http://themes.trac.wordpress.org/ticket/2203</a>). <br>The theme uses default widgets in the way like this:<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
the_widget(&#39;WP_Widget_Categories&#39;, &#39;&#39;, &#39;before_title=&lt;h5&gt;&amp;after_title=&lt;/h5&gt;&#39;);<br></blockquote>Such  function call generates php notices:<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
Notice: Undefined index: count in Z:\home\wp\www\wp-includes\default-widgets.php on line 430<br>Notice: Undefined index: hierarchical in Z:\home\wp\www\wp-includes\default-widgets.php on line 431<br>Notice: Undefined index: dropdown in Z:\home\wp\www\wp-includes\default-widgets.php on line 432</blockquote>
<div>So the notices are generated in WP core file in such lines:<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">$c = $instance[&#39;count&#39;] ? &#39;1&#39; : &#39;0&#39;;<br>
$h = $instance[&#39;hierarchical&#39;] ? &#39;1&#39; : &#39;0&#39;;<br>$d = $instance[&#39;dropdown&#39;] ? &#39;1&#39; : &#39;0&#39;;<br></blockquote>I.e. if I don&#39;t set parameters (that are not required) these indexes do not exist and the notices appear.<br>
I can avoid appearing these notices by setting the parameters but if I call:<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">the_widget(&#39;WP_Widget_Recent_Posts&#39;, &#39;&#39;, &#39;before_title=&lt;h5&gt;&amp;after_title=&lt;/h5&gt;&#39;);<br>
</blockquote>the notices are:<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">Notice: Undefined index: widget_id in Z:\home\wp\www\wp-includes\default-widgets.php on line 529<br>
Notice: Undefined index: number in Z:\home\wp\www\wp-includes\default-widgets.php on line 538<br></blockquote>One of these notices is generated by this line:<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
if ( isset($cache[$args[&#39;widget_id&#39;]]) ) {<br></blockquote>  That means that I cannot avoid this notice...<br><br>The question are:<br>Should the theme be approved with such notices? <br>Should WP team fix these notices? <br>
Or should I?<br><br>Regards,<br>Ivan<br></div><br>