<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Simplish &#187; functions.php</title>
	<atom:link href="http://simplish.pomfolio.com/dev/t/functions-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://simplish.pomfolio.com</link>
	<description>is a kind of Scribbish</description>
	<lastBuildDate>Mon, 15 Aug 2011 01:39:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Threadbare no longer (Simplish 2.1.4RC)</title>
		<link>http://simplish.pomfolio.com/dev/2008/11/27/threadbare-no-longer-simplish-214rc/</link>
		<comments>http://simplish.pomfolio.com/dev/2008/11/27/threadbare-no-longer-simplish-214rc/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 19:36:05 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[changelog]]></category>
		<category><![CDATA[comment request]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[nested]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[release candidate]]></category>
		<category><![CDATA[reply]]></category>
		<category><![CDATA[threaded comments]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress27]]></category>

		<guid isPermaLink="false">http://labs.utopian.net/blogs/simplish/?p=75</guid>
		<description><![CDATA[A pre-release candidate with initial threaded comments support ahead of WordPress 2.7. For testing purposes. <a class="more-link" href="http://simplish.pomfolio.com/dev/2008/11/27/threadbare-no-longer-simplish-214rc/">More<span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As mentioned in comments on <a href="http://labs.utopian.net/blogs/simplish/dev/2008/11/15/not-about-javascript/">my original mild objection</a>, I&#8217;ve been convinced that threaded discussions, new in the upcoming WordPress version 2.7, are a good value at the price. So today I slapped support for the feature into Simplish. This version of the theme should be considered &#8220;beta&#8221; quality, just like the new WordPress features on which it&#8217;s built. Both are subject to change before final release.</p>
<dl>
<dt>Demo</dt>
<dd><a href="http://labs.utopian.net/who/josh/wp-svn/?p=1">http://labs.utopian.net/who/josh/wp-svn/?p=1</a></dd>
<dt>Code</dt>
<dd><a title="Download Simplish Test Version" href="http://labs.utopian.net/wordpress/theme/simplish/simplish-2.1.4RC.tgz">simplish-2.1.4RC.tgz</a></dd>
</dl>
<p>The demo shows a &#8220;jacob&#8217;s ladder&#8221; style for the comments/replies layout, where both left and right margins are indented per-thread-level. It&#8217;s an (experimental) attempt to ease the &#8220;comment chaos&#8221; feeling a deeply-threaded discussion can give.</p>
<p>A special thanks to <a href="http://ottodestruct.com">Otto</a> for his comments and his indispensable <a href="http://ottodestruct.com/blog/2008/09/29/wordpress-27-comments-enhancements/">threaded comments getting-started doc</a>.<br />
<span id="more-75"></span></p>
<h4>Notes</h4>
<p>For the theme, threaded comments support kicks off in <code>functions.php</code>: a function <code>ocomments()</code> checks if comment threading is available in your WordPress install (i.e., if <code>wp_list_comments()</code> exists; e.g., if it is running on version 2.7 or greater). If not, the theme loads the 2.6-compatible &#8220;old&#8221; comments template (<code>ocomments.php</code>), and comments look and work with no changes from previous versions. If your WordPress supports threading, the theme loads the new threaded comments template.</p>
<p>From there control of the feature moves to <code>header.php</code>. Simplish loads the comment thread JavaScript only when needed: only if threaded comments are enabled in wp-admin, and then only on single post views. The script is not loaded on multiple- and archive pages where comments are not displayed.</p>
<p>In this execution path, <code>single.php</code> runs next, and that script includes the <code>comments.php</code> comments template. <strong>If</strong> there are comments on the post, <code>comments.php</code> eventually calls <code>wp_list_comments()</code> to echo the comments loop, producing the threaded result.</p>
<p>The JavaScript enqueued previously by <code>header.php</code> powers the <span class="caps">AJAX</span>-ified reply buttons and comment form. (Comment threading will work without this client-side script, but less smoothly.)</p>
<h4>Bugs</h4>
<p>There may be a few issues with paging threaded comments and reversing order from ascending to descending that can break &#8220;pretty&#8221; permalinks, as the page number is not always passed into links on comments page one. This issue, if it&#8217;s not just ephemera, appears to be a bug in <code>wp_list_comments()</code> and most easily patched there. <a href="http://trac.wordpress.org/ticket/8583">[Conners 2008-12-12]</a></p>
<p><code>Wp_list_comments()</code> produces some hCard classes in its comment loop output, but overall, comment author hCards and comment hAtom are less complete in this testing version than in previous versions of Simplish. To re-add the additional microformat stuff, we&#8217;ll filter <code>wp_list_comments()</code>, but this work isn&#8217;t started yet.</p>
<p>One place you won&#8217;t see threaded comments for a while is here at the Simplish site/blog, nor at the <a href="http://labs.utopian.net/blogs/simplish-demo/">&#8220;official&#8221; Simplish Demo</a>. Both are hosted on our <a href="http://mu.wordpress.org">WordPress-mu</a>-based <a href="http://labs.utopian.net/blogs/">Labs/Blogs</a> project on the stable version of the multi-blog WordPress software, and MU generally trails wp.org releases and features by a few weeks at least.</p>
<p>Simplish 2.1.4 is planned for final release in conjunction with WordPress version 2.7 &#8212; &#8220;real soon now.&#8221;</p>
<p>Happy [U.S.] Thanksgiving!</p>
]]></content:encoded>
			<wfw:commentRss>http://simplish.pomfolio.com/dev/2008/11/27/threadbare-no-longer-simplish-214rc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

