I&#39;m totally not following.<div><br></div><div>&#39;type=comment&#39; will exclude *anything* else. So, no matter what I put in the callback, no other comment type, core or custom, will be included in the output. </div>
<div><br></div><div>And, why would I add in another call to wp_list_comments() - which I assume your #5 would require, in order to account for the &quot;default&quot; type - if I&#39;ve already accounted for output of all core comment types?</div>
<div><br></div><div>Note that this is a deliberate design decision (and one that is currently *recommended* in the Guidelines) to <i>completely separate</i> comments and pings into separate lists. Under such a design, a switch doesn&#39;t help at all.</div>
<div><br></div><div>Chip</div><div><br><div class="gmail_quote">On Tue, Apr 26, 2011 at 10:31 PM, Sayontan Sinha <span dir="ltr">&lt;<a href="mailto:sayontan@gmail.com">sayontan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Basically I am just suggesting some tinkering of the flow. Once you have done your call to $wp_query-&gt;comments_by_type, you have got the array by comment type. What I am suggesting is that you can move the two blocks of your code from your mail into a switch block after the call to  $wp_query-&gt;comments_by_type. Because, this call is going to return to you the standard types, &#39;comment&#39;, &#39;trackback&#39;, &#39;pingback&#39;, &#39;pings&#39; and any other custom comment type. Once you have the array, you can check which keys are present, then have your code built out that way.<br>

<br>Think about it this way:<br><ol><li>You call  $wp_query-&gt;comments_by_type first. Currently you have it invoked in line 64, just before your second block. I am suggesting moving it much higher up in the flow, around line 34.<br>

</li><li>Then you start the switch statement.</li><li>In your case statement for &#39;comment&#39; you put in the first block from below. You can even add in conditions to display it if the array size &gt; 0<br></li><li>
In your next case statement for &#39;pings&#39; you put in the second block from below</li>
<li>You can then add the default case type.<br></li></ol>Hope this makes sense.<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Tue, Apr 26, 2011 at 8:19 PM, Chip Bennett <span dir="ltr">&lt;<a href="mailto:chip@chipbennett.net" target="_blank">chip@chipbennett.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">One of us is misunderstanding the other.<div><br></div><div>Yes, I know that a switch can have a default case. But that doesn&#39;t help, if the calls to wp_list_comments() themselves <i>explicitly declare the comment type</i>.</div>


<div><br></div><div>In my Theme:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;background-color:rgb(255, 255, 255);font-family:&#39;Times New Roman&#39;;font-size:medium;background-repeat:repeat no-repeat">


<div style="margin-top:0px;margin-right:auto;margin-bottom:0px;margin-left:auto;padding-top:0px;padding-right:15px;padding-bottom:0px;padding-left:15px;line-height:1.4em;width:920px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;overflow-x:hidden;overflow-y:hidden">


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;width:10000px"><div style="margin-top:0px;margin-right:100px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;width:920px">


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em"><div style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(204, 204, 204);border-right-color:rgb(204, 204, 204);border-bottom-color:rgb(204, 204, 204);border-left-color:rgb(204, 204, 204)">


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;font-size:11px;overflow-x:auto;overflow-y:auto;background-color:rgb(248, 248, 255)">


<table style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;font-size:inherit;line-height:1.4em" cellpadding="0" cellspacing="0">
<tbody style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em"><tr style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">


<td style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em" width="100%"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:1em;padding-right:0px;padding-bottom:1em;padding-left:0px;line-height:1.4em;background-color:rgb(255, 255, 255);border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;background-repeat:initial initial">


<pre style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;font-family:&#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace;font-size:12px">
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:1em;line-height:1.4em"><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">&lt;ol class=&quot;commentlist&quot;&gt;</span></div>


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:1em;line-height:1.4em"><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">        </span><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;color:rgb(153, 153, 153);font-weight:bold">&lt;?php</span>        <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">wp_list_comments</span><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">(</span> <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;color:rgb(221, 17, 68)">&#39;type=comment&amp;avatar_size=40&#39;</span> <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">);</span> <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;color:rgb(153, 153, 153);font-weight:bold">?&gt;</span><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em"></span></div>


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:1em;line-height:1.4em"><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">&lt;/ol&gt;</span></div>


</pre></div></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;background-color:rgb(255, 255, 255);font-family:&#39;Times New Roman&#39;;font-size:medium;background-repeat:repeat no-repeat">


<div style="margin-top:0px;margin-right:auto;margin-bottom:0px;margin-left:auto;padding-top:0px;padding-right:15px;padding-bottom:0px;padding-left:15px;line-height:1.4em;width:920px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;overflow-x:hidden;overflow-y:hidden">


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;width:10000px"><div style="margin-top:0px;margin-right:100px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;width:920px">


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em"><div style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(204, 204, 204);border-right-color:rgb(204, 204, 204);border-bottom-color:rgb(204, 204, 204);border-left-color:rgb(204, 204, 204)">


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;font-size:11px;overflow-x:auto;overflow-y:auto;background-color:rgb(248, 248, 255)">


<table style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;font-size:inherit;line-height:1.4em" cellpadding="0" cellspacing="0">
<tbody style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em"><tr style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">


<td style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em" width="100%"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:1em;padding-right:0px;padding-bottom:1em;padding-left:0px;line-height:1.4em;background-color:rgb(255, 255, 255);border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;background-repeat:initial initial">


<pre style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;font-family:&#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace;font-size:12px">
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:1em;line-height:1.4em"><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">&lt;h3 class=&#39;trackbackheader&#39;&gt;Trackbacks&lt;/h3&gt;</span></div>


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:1em;line-height:1.4em"><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">&lt;ol class=&quot;trackbacklist&quot;&gt;</span></div>


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:1em;line-height:1.4em"><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">        </span><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;color:rgb(153, 153, 153);font-weight:bold">&lt;?php</span> <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">wp_list_comments</span><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">(</span> <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;font-weight:bold">array</span><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">(</span> <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;color:rgb(221, 17, 68)">&#39;type&#39;</span> <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;font-weight:bold">=&gt;</span> <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;color:rgb(221, 17, 68)">&#39;pings&#39;</span><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">,</span> <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;color:rgb(221, 17, 68)">&#39;callback&#39;</span> <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;font-weight:bold">=&gt;</span> <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;color:rgb(221, 17, 68)">&#39;oenology_comment_list_pings&#39;</span> <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">)</span> <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">);</span> <span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em;color:rgb(153, 153, 153);font-weight:bold">?&gt;</span><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em"></span></div>


<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:1em;line-height:1.4em"><span style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;line-height:1.4em">&lt;/ol&gt;</span></div>


</pre></div></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>So, where, in those two calls, will some arbitrary, non-core comment type be displayed?</div><div>


<br></div><div><font color="#888888">Chip</font><div><div></div><div><br><br><div class="gmail_quote">On Tue, Apr 26, 2011 at 10:15 PM, Sayontan Sinha <span dir="ltr">&lt;<a href="mailto:sayontan@gmail.com" target="_blank">sayontan@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In your code you have this:<br><pre><span>$comments_by_type</span> <span>=</span> <span>$wp_query</span><span>-&gt;</span><span>comments_by_type</span><span>;</span></pre>
That is going to return an array with the comment_type as the key and the comments as the value. This will include custom comment types.<br><br>So, if you are iterating over this:<br>foreach ($comments_by_type as $comment_type =&gt; $comments) {<br>



   switch ($comment_type) {<br>       case &#39;comment&#39;:<br>                 // comment processing, including wp_list_comments<br>                 break;<br>       case &#39;trackback&#39;:<br>
                 // trackback processing, including wp_list_comments<br>
                 break;<br>
       case &#39;pingback&#39;:<br>

                 // pingback processing, including wp_list_comments<br>

                 break;<br>

       default:<br>


                 wp_list_comments(&#39;type&#39; =&gt; $comment_type); // you are simply passing the $comment_type to it.<br>


                 break;<div><div></div><div><br>


   }<br>}<br><br><div class="gmail_quote">On Tue, Apr 26, 2011 at 8:09 PM, Chip Bennett <span dir="ltr">&lt;<a href="mailto:chip@chipbennett.net" target="_blank">chip@chipbennett.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



Here&#39;s an example of my use case:<div><a href="https://github.com/chipbennett/oenology/blob/master/comments.php" target="_blank">https://github.com/chipbennett/oenology/blob/master/comments.php</a></div>
<div><br></div><div>(And consider that the Guidelines currently *suggest* separating pings from comments.)</div><div><br></div><div>My primary issue is with this assertion:</div><div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">




<div>how will this be displayed if a theme is deliberately overwriting core functionality and not showing the output of alternate comment types?</div></blockquote>
<div><br></div></div><div>Passing a valid argument to a core function is not &quot;overwriting core functionality&quot;. Those arbitrary, &quot;alternate&quot; comment types *aren&#39;t part of core*. Put bluntly: <i>as a matter of official Theme review, I don&#39;t care about any non-core comment types, including &quot;tweetback&quot;</i>.</div>




<div><br></div><div>Again: if a Plugin adds a custom comment type, then the *Plugin* is responsible for either hooking that custom content into the Theme, or else for providing instructions to the end user for how to incorporate that custom content. (Yes, it might mean instructing the user to add a call to wp_list_comments( &#39;type=tweetback&#39; ). I see no problem with that.)</div>




<div><br></div><div>I don&#39;t agree that WordPress &quot;handles it beautifully&quot;, because, aesthetically speaking, I think that pings mixed in with comments looks utterly horrid. Seeing &quot;tweetbacks&quot; mixed in with comments AND pings would look even worse.</div>




<div><br></div><div>On the other hand: I do agree with you that all code should be added deliberately. Copy/pasting TwentyTen&#39;s comments callback should  be done deliberately. And we should absolutely be checking such a Theme&#39;s comment-list output, to ensure that it is appropriate - and wherever possible, helping to educate Theme developers on the proper usage and powerful potential of implementing such custom callbacks. Such effort will only be to the benefit of end users.</div>




<div><br></div><div><font color="#888888">Chip</font><div><div></div><div><br><br><div class="gmail_quote">On Wed, Apr 27, 2011 at 9:50 PM, Justin Tadlock <span dir="ltr">&lt;<a href="mailto:justin@justintadlock.com" target="_blank">justin@justintadlock.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div text="#000000" bgcolor="#ffffff">
    My question is:  If a plugin adds a custom comment type (for
    example, Facebook comments, tweetbacks, or something of the sort),
    how will this be displayed if a theme is deliberately overwriting
    core functionality and not showing the output of alternate comment
    types?<br>
    <br>
    By default, WordPress handles this beautifully.  It&#39;s only when a
    theme overwrites this functionality that it breaks.<br>
    <br>
    The fix is really quite simple for most themes.  Just create a
    default case in that copy-pasted switch statement used in about 90%
    of the themes based off TwentyTen&#39;s comment system.<br>
    <br>
    I&#39;m not suggesting we make a new guideline here.  I&#39;m just
    suggesting we be on the lookout for this in themes where devs just
    copy/paste comment callback functions without giving it much
    thought.  I could certainly understand an intentional design choice
    to exclude custom comment types.  Whatever we decide, I&#39;ll be sure
    to continue educating theme authors on this because it is a
    legitimate problem that themes create for plugin authors.<div><div></div><div><br>
    <br>
    On 4/26/2011 9:36 PM, Chip Bennett wrote:
    <blockquote type="cite">If a Theme is providing callback output for &#39;comment&#39;,
      &#39;pingback&#39;, and &#39;trackback&#39;, then it IS handling every core
      comment type; thus, I disagree that a Theme is not &quot;handling every
      scenario that core handles by default&quot;. A Theme cannot know what a
      Plugin might possibly hook into, or what content it might provide.
      <div>
        <br>
      </div>
      <div>Now, if a Theme provided callback functions for only
        &#39;comment&#39; comment types, but not for &#39;pings&#39; (or if it accounted
        for &#39;trackback&#39; but not &#39;pingback&#39;, or something similar), then
        I would agree. </div>
      <div><br>
      </div>
      <div>One of the most common features is for a Theme to separate
        comments form pings. That very act of separation - however
        accomplished - would require explicitly declaring &#39;comment&#39; and
        &#39;pings&#39; comment types. Thus, it would not be using the &#39;all&#39;
        comment type. And thus, such Themes would no longer be flexible
        enough to handle some non-core comment type added by a Plugin.</div>
      <div><br>
      </div>
      <div>Or am I missing something?</div>
      <div><br>
      </div>
      <div>Chip<br>
        <br>
        <div class="gmail_quote">On Wed, Apr 27, 2011 at 6:02 PM, Justin
          Tadlock <span dir="ltr">&lt;<a href="mailto:justin@justintadlock.com" target="_blank">justin@justintadlock.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            <div text="#000000" bgcolor="#ffffff"> I probably didn&#39;t
              explain myself well enough in the first email.<br>
              <br>
              We&#39;re not looking at the &quot;type&quot; parameter of
              wp_list_comments().  We&#39;re looking at the &quot;callback&quot;
              parameter here.  This is where a theme is overriding core
              functionality.  If the theme didn&#39;t override this
              functionality with a custom function, WordPress would
              display other comment types by default. <br>
              <br>
              A plugin cannot be responsible for incorporating custom
              comment types if a theme is purposely not allowing
              comments of a custom type to show.  There&#39;s no hook to
              allow a plugin to override what a theme is doing there. 
              Even if there was a hook there, this would be a major
              problem if a plugin was changing how a theme handled the
              display of comments.<br>
              <br>
              What&#39;s happening here is themes are overriding core
              functionality without handling every scenario that core
              handles by default.
              <div>
                <div><br>
                  <br>
                  On 4/26/2011 3:18 PM, Chip Bennett wrote:
                  <blockquote type="cite">Quite possibly. But it is not
                    the responsibility of Themes to account for content
                    added by Plugins.
                    <div><br>
                    </div>
                    <div>I see no reason to require Themes to support a
                      non-core &#39;tweetback&#39; comment-type. If a Plugin
                      adds this comment-type, then the Plugin should be
                      responsible for incorporating it.</div>
                    <div><br>
                    </div>
                    <div>Chip<br>
                      <br>
                      <div class="gmail_quote">On Tue, Apr 26, 2011 at
                        3:14 PM, Sayontan Sinha <span dir="ltr">&lt;<a href="mailto:sayontan@gmail.com" target="_blank">sayontan@gmail.com</a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"> Chip,<br>
                          I believe Justin is referring to the fact that
                          plugins can add the type &quot;tweetback&quot;. If that
                          is the case, then a theme that is explicitly
                          checking only for &quot;comment&quot;, &quot;pingback&quot; and
                          &quot;trackback&quot; is missing out on the ones that
                          don&#39;t fall into these buckets, i.e. it is
                          missing a catch-all for types introduced by
                          plugins.<br>
                          <br>
                          Sayontan.
                          <div>
                            <div><br>
                              <br>
                              <div class="gmail_quote">On Tue, Apr 26,
                                2011 at 12:49 PM, Chip Bennett <span dir="ltr">&lt;<a href="mailto:chip@chipbennett.net" target="_blank">chip@chipbennett.net</a>&gt;</span>
                                wrote:<br>
                                <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"> I can&#39;t
                                  find that &#39;tweetback&#39; is a core
                                  comment type.
                                  <div><br>
                                  </div>
                                  <div><a href="http://codex.wordpress.org/Function_Reference/wp_list_comments" target="_blank">According to the
                                      Codex</a>, the valid types are: <span style="font-family:&#39;Lucida Grande&#39;,Verdana,&#39;Bitstream Vera Sans&#39;,Arial,sans-serif;font-size:12px;line-height:22px">&#39;all&#39;,
                                      &#39;comment&#39;, &#39;trackback&#39;,
                                      &#39;pingback&#39;, or &#39;pings&#39;</span></div>
                                  <div><br>
                                  </div>
                                  <div>So, if a Theme accounts for these
                                    types, that should be sufficient.
                                    For instance, if a Theme accounts
                                    for &#39;comments&#39; and &#39;pings&#39;, all
                                    bases are covered.</div>
                                  <div><br>
                                  </div>
                                  <div><font color="#888888">Chip</font>
                                    <div>
                                      <div><br>
                                        <br>
                                        <div class="gmail_quote">On Tue,
                                          Apr 26, 2011 at 2:39 PM, Chip
                                          Bennett <span dir="ltr">&lt;<a href="mailto:chip@chipbennett.net" target="_blank">chip@chipbennett.net</a>&gt;</span>
                                          wrote:<br>
                                          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"> Hmm...
                                            I don&#39;t think I&#39;ve yet seen
                                            a Theme that explicitly
                                            handles tweetbacks.
                                            (Honestly, I didn&#39;t even
                                            realize such a comment type
                                            existed.)
                                            <div><br>
                                            </div>
                                            <div><font color="#888888">Chip</font>
                                              <div>
                                                <div><br>
                                                  <br>
                                                  <div class="gmail_quote">On
                                                    Wed, Apr 27, 2011 at
                                                    2:16 PM, Justin
                                                    Tadlock <span dir="ltr">&lt;<a href="mailto:justin@justintadlock.com" target="_blank">justin@justintadlock.com</a>&gt;</span>
                                                    wrote:<br>
                                                    <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Here&#39;s a few
                                                      things we should
                                                      be on the lookout
                                                      for when reviewing
                                                      themes that I
                                                      thought I&#39;d bring
                                                      up.<br>
                                                      <br>
                                                      The use of
                                                      the_post_thumbnail()
                                                      with the_content()
                                                      can sometimes be a
                                                      problem.  If a
                                                      user places the
                                                      image within the
                                                      post content (at
                                                      the beginning of
                                                      the post) and sets
                                                      the same image as
                                                      the &quot;feature
                                                      image,&quot; it creates
                                                      a duplicate image
                                                      issue.  Some
                                                      themes&#39; designs
                                                      are meant to
                                                      handle this while
                                                      others aren&#39;t.<br>
                                                      <br>
                                                      Some themes have a
                                                      comments callback
                                                      function where
                                                      they don&#39;t
                                                      recognize comment
                                                      types other than
                                                      &#39;comment&#39;,
                                                      &#39;pingback&#39;, and
                                                      &#39;trackback&#39;.  
                                                      This is also the
                                                      case in the
                                                      TwentyTen theme.
                                                       If you look at
                                                      its switch
                                                      statement, you&#39;ll
                                                      notice it doesn&#39;t
                                                      give a &#39;default&#39;
                                                      case.  It should
                                                      be corrected to
                                                      handle all comment
                                                      types (e.g.,
                                                      tweetbacks).<br>
                                                      <br>
                                                      Loading JS and CSS
                                                      on all pages of
                                                      the admin.
                                                       Sometimes, themes
                                                      hook their theme
                                                      settings page
                                                      JavaScript and
                                                      Stylesheet to the
                                                      &#39;admin_init&#39; hook
                                                      or something
                                                      similar.  This
                                                      should only be
                                                      loaded on the the
                                                      theme settings
                                                      page.  If using
                                                      the
                                                      add_theme_page()
                                                      function, a hook
                                                      is created just
                                                      for that page.  A
                                                      better hook would
                                                      probably be
                                                      &#39;load-appearance_page_$pagename&#39;.<br>
_______________________________________________<br>
                                                      theme-reviewers
                                                      mailing list<br>
                                                      <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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>
                                                    </blockquote>
                                                  </div>
                                                  <br>
                                                </div>
                                              </div>
                                            </div>
                                          </blockquote>
                                        </div>
                                        <br>
                                      </div>
                                    </div>
                                  </div>
                                  <br>
_______________________________________________<br>
                                  theme-reviewers mailing list<br>
                                  <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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>
                              <br clear="all">
                              <br>
                            </div>
                          </div>
                          -- <br>
                          Sayontan Sinha<br>
                          <a href="http://mynethome.net" target="_blank">http://mynethome.net</a>
                          | <a href="http://mynethome.net/blog" target="_blank">http://mynethome.net/blog</a><br>
                          <font color="#888888"> --<br>
                            Beating Australia in Cricket is like killing
                            a celebrity. The death gets more coverage
                            than the crime.<br>
                            <br>
                          </font><br>
_______________________________________________<br>
                          theme-reviewers mailing list<br>
                          <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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>
                    </div>
                    <pre><fieldset></fieldset>
_______________________________________________
theme-reviewers mailing list
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a>
</pre>
                  </blockquote>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            theme-reviewers mailing list<br>
            <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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>
      </div>
      <pre><fieldset></fieldset>
_______________________________________________
theme-reviewers mailing list
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a>
</pre>
    </blockquote>
  </div></div></div>

<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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></div></div></div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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><br clear="all"><br>-- <br>Sayontan Sinha<br><a href="http://mynethome.net" target="_blank">http://mynethome.net</a> | <a href="http://mynethome.net/blog" target="_blank">http://mynethome.net/blog</a><br>



--<br>Beating Australia in Cricket is like killing a celebrity. The death gets more coverage than the crime.<br><br>
</div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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></div></div></div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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><br clear="all"><br>-- <br>Sayontan Sinha<br><a href="http://mynethome.net" target="_blank">http://mynethome.net</a> | <a href="http://mynethome.net/blog" target="_blank">http://mynethome.net/blog</a><br>

--<br>Beating Australia in Cricket is like killing a celebrity. The death gets more coverage than the crime.<br><br>
</div></div><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></div>