Hi all,<br>I'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('WP_Widget_Categories', '', 'before_title=<h5>&after_title=</h5>');<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['count'] ? '1' : '0';<br>
$h = $instance['hierarchical'] ? '1' : '0';<br>$d = $instance['dropdown'] ? '1' : '0';<br></blockquote>I.e. if I don'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('WP_Widget_Recent_Posts', '', 'before_title=<h5>&after_title=</h5>');<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['widget_id']]) ) {<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>