The only thing that comes to mind is if any add_action requires the highest priority to be used "correctly" then perhaps it should be submitted as a core requirement (optional in settings?) ... just a thought; otherwise your function example looks fine.<br>
<br><br>Cais.<br><br><div class="gmail_quote">On Thu, Apr 21, 2011 at 2:44 PM, Chip Bennett <span dir="ltr"><<a href="mailto:chip@chipbennett.net">chip@chipbennett.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
One more for today:<div><br></div><div>Most Themes drop the wp_enqueue_script( 'comment-reply' ) code directly into the document head, but it *can* be hooked into wp_head, if given the correct priority.</div><div>
<br>
</div><div>I *think* wp_enqueue_styles fires at priority 1 in wp_head. Regardless, passing priority 0 to the enqueue function *does* work. e.g.:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><div>function oenology_enqueue_comment_reply() {</div><div><span style="white-space:pre-wrap">        </span>if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { </div>
<div><span style="white-space:pre-wrap">                        </span>wp_enqueue_script( 'comment-reply' ); </div><div><span style="white-space:pre-wrap">        </span>}</div><div>}</div><div>add_action( 'wp_head', 'oenology_enqueue_comment_reply', 0 );</div>
</div></blockquote><div><br></div><div>Notice that I've also added a comments_open() to the conditional.</div><div><br></div><div>Any comments/ideas/suggestions?</div><div><br></div><font color="#888888"><div>Chip</div>
</font><br>_______________________________________________<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>
<br></blockquote></div><br>