<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[16100] trunk/wp-includes: Move Walker_Page* to post-template,
  Walker_Category* to category-template, and rm classes.php.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/16100">16100</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-10-30 14:06:08 +0000 (Sat, 30 Oct 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Move Walker_Page* to post-template, Walker_Category* to category-template, and rm classes.php. see <a href="http://trac.wordpress.org/ticket/10287">#10287</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludescategorytemplatephp">trunk/wp-includes/category-template.php</a></li>
<li><a href="#trunkwpincludesposttemplatephp">trunk/wp-includes/post-template.php</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkwpincludesclassesphp">trunk/wp-includes/classes.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludescategorytemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/category-template.php (16099 => 16100)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/category-template.php        2010-10-30 07:02:06 UTC (rev 16099)
+++ trunk/wp-includes/category-template.php        2010-10-30 14:06:08 UTC (rev 16100)
</span><span class="lines">@@ -743,6 +743,205 @@
</span><span class="cx">         return call_user_func_array(array( &amp;$walker, 'walk' ), $args );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * Create HTML list of categories.
+ *
+ * @package WordPress
+ * @since 2.1.0
+ * @uses Walker
+ */
+class Walker_Category extends Walker {
+        /**
+         * @see Walker::$tree_type
+         * @since 2.1.0
+         * @var string
+         */
+        var $tree_type = 'category';
+
+        /**
+         * @see Walker::$db_fields
+         * @since 2.1.0
+         * @todo Decouple this
+         * @var array
+         */
+        var $db_fields = array ('parent' =&gt; 'parent', 'id' =&gt; 'term_id');
+
+        /**
+         * @see Walker::start_lvl()
+         * @since 2.1.0
+         *
+         * @param string $output Passed by reference. Used to append additional content.
+         * @param int $depth Depth of category. Used for tab indentation.
+         * @param array $args Will only append content if style argument value is 'list'.
+         */
+        function start_lvl(&amp;$output, $depth, $args) {
+                if ( 'list' != $args['style'] )
+                        return;
+
+                $indent = str_repeat(&quot;\t&quot;, $depth);
+                $output .= &quot;$indent&lt;ul class='children'&gt;\n&quot;;
+        }
+
+        /**
+         * @see Walker::end_lvl()
+         * @since 2.1.0
+         *
+         * @param string $output Passed by reference. Used to append additional content.
+         * @param int $depth Depth of category. Used for tab indentation.
+         * @param array $args Will only append content if style argument value is 'list'.
+         */
+        function end_lvl(&amp;$output, $depth, $args) {
+                if ( 'list' != $args['style'] )
+                        return;
+
+                $indent = str_repeat(&quot;\t&quot;, $depth);
+                $output .= &quot;$indent&lt;/ul&gt;\n&quot;;
+        }
+
+        /**
+         * @see Walker::start_el()
+         * @since 2.1.0
+         *
+         * @param string $output Passed by reference. Used to append additional content.
+         * @param object $category Category data object.
+         * @param int $depth Depth of category in reference to parents.
+         * @param array $args
+         */
+        function start_el(&amp;$output, $category, $depth, $args) {
+                extract($args);
+
+                $cat_name = esc_attr( $category-&gt;name );
+                $cat_name = apply_filters( 'list_cats', $cat_name, $category );
+                $link = '&lt;a href=&quot;' . esc_attr( get_term_link($category) ) . '&quot; ';
+                if ( $use_desc_for_title == 0 || empty($category-&gt;description) )
+                        $link .= 'title=&quot;' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '&quot;';
+                else
+                        $link .= 'title=&quot;' . esc_attr( strip_tags( apply_filters( 'category_description', $category-&gt;description, $category ) ) ) . '&quot;';
+                $link .= '&gt;';
+                $link .= $cat_name . '&lt;/a&gt;';
+
+                if ( !empty($feed_image) || !empty($feed) ) {
+                        $link .= ' ';
+
+                        if ( empty($feed_image) )
+                                $link .= '(';
+
+                        $link .= '&lt;a href=&quot;' . get_term_feed_link( $category-&gt;term_id, $category-&gt;taxonomy, $feed_type ) . '&quot;';
+
+                        if ( empty($feed) ) {
+                                $alt = ' alt=&quot;' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) . '&quot;';
+                        } else {
+                                $title = ' title=&quot;' . $feed . '&quot;';
+                                $alt = ' alt=&quot;' . $feed . '&quot;';
+                                $name = $feed;
+                                $link .= $title;
+                        }
+
+                        $link .= '&gt;';
+
+                        if ( empty($feed_image) )
+                                $link .= $name;
+                        else
+                                $link .= &quot;&lt;img src='$feed_image'$alt$title&quot; . ' /&gt;';
+
+                        $link .= '&lt;/a&gt;';
+
+                        if ( empty($feed_image) )
+                                $link .= ')';
+                }
+
+                if ( !empty($show_count) )
+                        $link .= ' (' . intval($category-&gt;count) . ')';
+
+                if ( !empty($show_date) )
+                        $link .= ' ' . gmdate('Y-m-d', $category-&gt;last_update_timestamp);
+
+                if ( 'list' == $args['style'] ) {
+                        $output .= &quot;\t&lt;li&quot;;
+                        $class = 'cat-item cat-item-' . $category-&gt;term_id;
+                        if ( !empty($current_category) ) {
+                                $_current_category = get_term( $current_category, $category-&gt;taxonomy );
+                                if ( $category-&gt;term_id == $current_category )
+                                        $class .=  ' current-cat';
+                                elseif ( $category-&gt;term_id == $_current_category-&gt;parent )
+                                        $class .=  ' current-cat-parent';
+                        }
+                        $output .=  ' class=&quot;' . $class . '&quot;';
+                        $output .= &quot;&gt;$link\n&quot;;
+                } else {
+                        $output .= &quot;\t$link&lt;br /&gt;\n&quot;;
+                }
+        }
+
+        /**
+         * @see Walker::end_el()
+         * @since 2.1.0
+         *
+         * @param string $output Passed by reference. Used to append additional content.
+         * @param object $page Not used.
+         * @param int $depth Depth of category. Not used.
+         * @param array $args Only uses 'list' for whether should append to output.
+         */
+        function end_el(&amp;$output, $page, $depth, $args) {
+                if ( 'list' != $args['style'] )
+                        return;
+
+                $output .= &quot;&lt;/li&gt;\n&quot;;
+        }
+
+}
+
+/**
+ * Create HTML dropdown list of Categories.
+ *
+ * @package WordPress
+ * @since 2.1.0
+ * @uses Walker
+ */
+class Walker_CategoryDropdown extends Walker {
+        /**
+         * @see Walker::$tree_type
+         * @since 2.1.0
+         * @var string
+         */
+        var $tree_type = 'category';
+
+        /**
+         * @see Walker::$db_fields
+         * @since 2.1.0
+         * @todo Decouple this
+         * @var array
+         */
+        var $db_fields = array ('parent' =&gt; 'parent', 'id' =&gt; 'term_id');
+
+        /**
+         * @see Walker::start_el()
+         * @since 2.1.0
+         *
+         * @param string $output Passed by reference. Used to append additional content.
+         * @param object $category Category data object.
+         * @param int $depth Depth of category. Used for padding.
+         * @param array $args Uses 'selected', 'show_count', and 'show_last_update' keys, if they exist.
+         */
+        function start_el(&amp;$output, $category, $depth, $args) {
+                $pad = str_repeat('&amp;nbsp;', $depth * 3);
+
+                $cat_name = apply_filters('list_cats', $category-&gt;name, $category);
+                $output .= &quot;\t&lt;option class=\&quot;level-$depth\&quot; value=\&quot;&quot;.$category-&gt;term_id.&quot;\&quot;&quot;;
+                if ( $category-&gt;term_id == $args['selected'] )
+                        $output .= ' selected=&quot;selected&quot;';
+                $output .= '&gt;';
+                $output .= $pad.$cat_name;
+                if ( $args['show_count'] )
+                        $output .= '&amp;nbsp;&amp;nbsp;('. $category-&gt;count .')';
+                if ( $args['show_last_update'] ) {
+                        $format = 'Y-m-d';
+                        $output .= '&amp;nbsp;&amp;nbsp;' . gmdate($format, $category-&gt;last_update_timestamp);
+                }
+                $output .= &quot;&lt;/option&gt;\n&quot;;
+        }
+}
+
</ins><span class="cx"> //
</span><span class="cx"> // Tags
</span><span class="cx"> //
</span></span></pre></div>
<a id="trunkwpincludesclassesphp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-includes/classes.php (16099 => 16100)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/classes.php        2010-10-30 07:02:06 UTC (rev 16099)
+++ trunk/wp-includes/classes.php        2010-10-30 14:06:08 UTC (rev 16100)
</span><span class="lines">@@ -1,362 +0,0 @@
</span><del>-&lt;?php
-/**
- * Holds Most of the WordPress classes.
- *
- * Some of the other classes are contained in other files. For example, the
- * WordPress cache is in cache.php and the WordPress roles API is in
- * capabilities.php. The third party libraries are contained in their own
- * separate files.
- *
- * @package WordPress
- */
-
-/**
- * Create HTML list of pages.
- *
- * @package WordPress
- * @since 2.1.0
- * @uses Walker
- */
-class Walker_Page extends Walker {
-        /**
-         * @see Walker::$tree_type
-         * @since 2.1.0
-         * @var string
-         */
-        var $tree_type = 'page';
-
-        /**
-         * @see Walker::$db_fields
-         * @since 2.1.0
-         * @todo Decouple this.
-         * @var array
-         */
-        var $db_fields = array ('parent' =&gt; 'post_parent', 'id' =&gt; 'ID');
-
-        /**
-         * @see Walker::start_lvl()
-         * @since 2.1.0
-         *
-         * @param string $output Passed by reference. Used to append additional content.
-         * @param int $depth Depth of page. Used for padding.
-         */
-        function start_lvl(&amp;$output, $depth) {
-                $indent = str_repeat(&quot;\t&quot;, $depth);
-                $output .= &quot;\n$indent&lt;ul class='children'&gt;\n&quot;;
-        }
-
-        /**
-         * @see Walker::end_lvl()
-         * @since 2.1.0
-         *
-         * @param string $output Passed by reference. Used to append additional content.
-         * @param int $depth Depth of page. Used for padding.
-         */
-        function end_lvl(&amp;$output, $depth) {
-                $indent = str_repeat(&quot;\t&quot;, $depth);
-                $output .= &quot;$indent&lt;/ul&gt;\n&quot;;
-        }
-
-        /**
-         * @see Walker::start_el()
-         * @since 2.1.0
-         *
-         * @param string $output Passed by reference. Used to append additional content.
-         * @param object $page Page data object.
-         * @param int $depth Depth of page. Used for padding.
-         * @param int $current_page Page ID.
-         * @param array $args
-         */
-        function start_el(&amp;$output, $page, $depth, $args, $current_page) {
-                if ( $depth )
-                        $indent = str_repeat(&quot;\t&quot;, $depth);
-                else
-                        $indent = '';
-
-                extract($args, EXTR_SKIP);
-                $css_class = array('page_item', 'page-item-'.$page-&gt;ID);
-                if ( !empty($current_page) ) {
-                        $_current_page = get_page( $current_page );
-                        if ( isset($_current_page-&gt;ancestors) &amp;&amp; in_array($page-&gt;ID, (array) $_current_page-&gt;ancestors) )
-                                $css_class[] = 'current_page_ancestor';
-                        if ( $page-&gt;ID == $current_page )
-                                $css_class[] = 'current_page_item';
-                        elseif ( $_current_page &amp;&amp; $page-&gt;ID == $_current_page-&gt;post_parent )
-                                $css_class[] = 'current_page_parent';
-                } elseif ( $page-&gt;ID == get_option('page_for_posts') ) {
-                        $css_class[] = 'current_page_parent';
-                }
-
-                $css_class = implode(' ', apply_filters('page_css_class', $css_class, $page));
-
-                $output .= $indent . '&lt;li class=&quot;' . $css_class . '&quot;&gt;&lt;a href=&quot;' . get_permalink($page-&gt;ID) . '&quot; title=&quot;' . esc_attr( wp_strip_all_tags( apply_filters( 'the_title', $page-&gt;post_title, $page-&gt;ID ) ) ) . '&quot;&gt;' . $link_before . apply_filters( 'the_title', $page-&gt;post_title, $page-&gt;ID ) . $link_after . '&lt;/a&gt;';
-
-                if ( !empty($show_date) ) {
-                        if ( 'modified' == $show_date )
-                                $time = $page-&gt;post_modified;
-                        else
-                                $time = $page-&gt;post_date;
-
-                        $output .= &quot; &quot; . mysql2date($date_format, $time);
-                }
-        }
-
-        /**
-         * @see Walker::end_el()
-         * @since 2.1.0
-         *
-         * @param string $output Passed by reference. Used to append additional content.
-         * @param object $page Page data object. Not used.
-         * @param int $depth Depth of page. Not Used.
-         */
-        function end_el(&amp;$output, $page, $depth) {
-                $output .= &quot;&lt;/li&gt;\n&quot;;
-        }
-
-}
-
-/**
- * Create HTML dropdown list of pages.
- *
- * @package WordPress
- * @since 2.1.0
- * @uses Walker
- */
-class Walker_PageDropdown extends Walker {
-        /**
-         * @see Walker::$tree_type
-         * @since 2.1.0
-         * @var string
-         */
-        var $tree_type = 'page';
-
-        /**
-         * @see Walker::$db_fields
-         * @since 2.1.0
-         * @todo Decouple this
-         * @var array
-         */
-        var $db_fields = array ('parent' =&gt; 'post_parent', 'id' =&gt; 'ID');
-
-        /**
-         * @see Walker::start_el()
-         * @since 2.1.0
-         *
-         * @param string $output Passed by reference. Used to append additional content.
-         * @param object $page Page data object.
-         * @param int $depth Depth of page in reference to parent pages. Used for padding.
-         * @param array $args Uses 'selected' argument for selected page to set selected HTML attribute for option element.
-         */
-        function start_el(&amp;$output, $page, $depth, $args) {
-                $pad = str_repeat('&amp;nbsp;', $depth * 3);
-
-                $output .= &quot;\t&lt;option class=\&quot;level-$depth\&quot; value=\&quot;$page-&gt;ID\&quot;&quot;;
-                if ( $page-&gt;ID == $args['selected'] )
-                        $output .= ' selected=&quot;selected&quot;';
-                $output .= '&gt;';
-                $title = esc_html($page-&gt;post_title);
-                $output .= &quot;$pad$title&quot;;
-                $output .= &quot;&lt;/option&gt;\n&quot;;
-        }
-}
-
-/**
- * Create HTML list of categories.
- *
- * @package WordPress
- * @since 2.1.0
- * @uses Walker
- */
-class Walker_Category extends Walker {
-        /**
-         * @see Walker::$tree_type
-         * @since 2.1.0
-         * @var string
-         */
-        var $tree_type = 'category';
-
-        /**
-         * @see Walker::$db_fields
-         * @since 2.1.0
-         * @todo Decouple this
-         * @var array
-         */
-        var $db_fields = array ('parent' =&gt; 'parent', 'id' =&gt; 'term_id');
-
-        /**
-         * @see Walker::start_lvl()
-         * @since 2.1.0
-         *
-         * @param string $output Passed by reference. Used to append additional content.
-         * @param int $depth Depth of category. Used for tab indentation.
-         * @param array $args Will only append content if style argument value is 'list'.
-         */
-        function start_lvl(&amp;$output, $depth, $args) {
-                if ( 'list' != $args['style'] )
-                        return;
-
-                $indent = str_repeat(&quot;\t&quot;, $depth);
-                $output .= &quot;$indent&lt;ul class='children'&gt;\n&quot;;
-        }
-
-        /**
-         * @see Walker::end_lvl()
-         * @since 2.1.0
-         *
-         * @param string $output Passed by reference. Used to append additional content.
-         * @param int $depth Depth of category. Used for tab indentation.
-         * @param array $args Will only append content if style argument value is 'list'.
-         */
-        function end_lvl(&amp;$output, $depth, $args) {
-                if ( 'list' != $args['style'] )
-                        return;
-
-                $indent = str_repeat(&quot;\t&quot;, $depth);
-                $output .= &quot;$indent&lt;/ul&gt;\n&quot;;
-        }
-
-        /**
-         * @see Walker::start_el()
-         * @since 2.1.0
-         *
-         * @param string $output Passed by reference. Used to append additional content.
-         * @param object $category Category data object.
-         * @param int $depth Depth of category in reference to parents.
-         * @param array $args
-         */
-        function start_el(&amp;$output, $category, $depth, $args) {
-                extract($args);
-
-                $cat_name = esc_attr( $category-&gt;name );
-                $cat_name = apply_filters( 'list_cats', $cat_name, $category );
-                $link = '&lt;a href=&quot;' . esc_attr( get_term_link($category) ) . '&quot; ';
-                if ( $use_desc_for_title == 0 || empty($category-&gt;description) )
-                        $link .= 'title=&quot;' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '&quot;';
-                else
-                        $link .= 'title=&quot;' . esc_attr( strip_tags( apply_filters( 'category_description', $category-&gt;description, $category ) ) ) . '&quot;';
-                $link .= '&gt;';
-                $link .= $cat_name . '&lt;/a&gt;';
-
-                if ( !empty($feed_image) || !empty($feed) ) {
-                        $link .= ' ';
-
-                        if ( empty($feed_image) )
-                                $link .= '(';
-
-                        $link .= '&lt;a href=&quot;' . get_term_feed_link( $category-&gt;term_id, $category-&gt;taxonomy, $feed_type ) . '&quot;';
-
-                        if ( empty($feed) ) {
-                                $alt = ' alt=&quot;' . sprintf(__( 'Feed for all posts filed under %s' ), $cat_name ) . '&quot;';
-                        } else {
-                                $title = ' title=&quot;' . $feed . '&quot;';
-                                $alt = ' alt=&quot;' . $feed . '&quot;';
-                                $name = $feed;
-                                $link .= $title;
-                        }
-
-                        $link .= '&gt;';
-
-                        if ( empty($feed_image) )
-                                $link .= $name;
-                        else
-                                $link .= &quot;&lt;img src='$feed_image'$alt$title&quot; . ' /&gt;';
-
-                        $link .= '&lt;/a&gt;';
-
-                        if ( empty($feed_image) )
-                                $link .= ')';
-                }
-
-                if ( !empty($show_count) )
-                        $link .= ' (' . intval($category-&gt;count) . ')';
-
-                if ( !empty($show_date) )
-                        $link .= ' ' . gmdate('Y-m-d', $category-&gt;last_update_timestamp);
-
-                if ( 'list' == $args['style'] ) {
-                        $output .= &quot;\t&lt;li&quot;;
-                        $class = 'cat-item cat-item-' . $category-&gt;term_id;
-                        if ( !empty($current_category) ) {
-                                $_current_category = get_term( $current_category, $category-&gt;taxonomy );
-                                if ( $category-&gt;term_id == $current_category )
-                                        $class .=  ' current-cat';
-                                elseif ( $category-&gt;term_id == $_current_category-&gt;parent )
-                                        $class .=  ' current-cat-parent';
-                        }
-                        $output .=  ' class=&quot;' . $class . '&quot;';
-                        $output .= &quot;&gt;$link\n&quot;;
-                } else {
-                        $output .= &quot;\t$link&lt;br /&gt;\n&quot;;
-                }
-        }
-
-        /**
-         * @see Walker::end_el()
-         * @since 2.1.0
-         *
-         * @param string $output Passed by reference. Used to append additional content.
-         * @param object $page Not used.
-         * @param int $depth Depth of category. Not used.
-         * @param array $args Only uses 'list' for whether should append to output.
-         */
-        function end_el(&amp;$output, $page, $depth, $args) {
-                if ( 'list' != $args['style'] )
-                        return;
-
-                $output .= &quot;&lt;/li&gt;\n&quot;;
-        }
-
-}
-
-/**
- * Create HTML dropdown list of Categories.
- *
- * @package WordPress
- * @since 2.1.0
- * @uses Walker
- */
-class Walker_CategoryDropdown extends Walker {
-        /**
-         * @see Walker::$tree_type
-         * @since 2.1.0
-         * @var string
-         */
-        var $tree_type = 'category';
-
-        /**
-         * @see Walker::$db_fields
-         * @since 2.1.0
-         * @todo Decouple this
-         * @var array
-         */
-        var $db_fields = array ('parent' =&gt; 'parent', 'id' =&gt; 'term_id');
-
-        /**
-         * @see Walker::start_el()
-         * @since 2.1.0
-         *
-         * @param string $output Passed by reference. Used to append additional content.
-         * @param object $category Category data object.
-         * @param int $depth Depth of category. Used for padding.
-         * @param array $args Uses 'selected', 'show_count', and 'show_last_update' keys, if they exist.
-         */
-        function start_el(&amp;$output, $category, $depth, $args) {
-                $pad = str_repeat('&amp;nbsp;', $depth * 3);
-
-                $cat_name = apply_filters('list_cats', $category-&gt;name, $category);
-                $output .= &quot;\t&lt;option class=\&quot;level-$depth\&quot; value=\&quot;&quot;.$category-&gt;term_id.&quot;\&quot;&quot;;
-                if ( $category-&gt;term_id == $args['selected'] )
-                        $output .= ' selected=&quot;selected&quot;';
-                $output .= '&gt;';
-                $output .= $pad.$cat_name;
-                if ( $args['show_count'] )
-                        $output .= '&amp;nbsp;&amp;nbsp;('. $category-&gt;count .')';
-                if ( $args['show_last_update'] ) {
-                        $format = 'Y-m-d';
-                        $output .= '&amp;nbsp;&amp;nbsp;' . gmdate($format, $category-&gt;last_update_timestamp);
-                }
-                $output .= &quot;&lt;/option&gt;\n&quot;;
-        }
-}
-
-?&gt;
</del></span></pre></div>
<a id="trunkwpincludesposttemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/post-template.php (16099 => 16100)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/post-template.php        2010-10-30 07:02:06 UTC (rev 16099)
+++ trunk/wp-includes/post-template.php        2010-10-30 14:06:08 UTC (rev 16100)
</span><span class="lines">@@ -921,6 +921,156 @@
</span><span class="cx">         return call_user_func_array(array(&amp;$walker, 'walk'), $args);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * Create HTML list of pages.
+ *
+ * @package WordPress
+ * @since 2.1.0
+ * @uses Walker
+ */
+class Walker_Page extends Walker {
+        /**
+         * @see Walker::$tree_type
+         * @since 2.1.0
+         * @var string
+         */
+        var $tree_type = 'page';
+
+        /**
+         * @see Walker::$db_fields
+         * @since 2.1.0
+         * @todo Decouple this.
+         * @var array
+         */
+        var $db_fields = array ('parent' =&gt; 'post_parent', 'id' =&gt; 'ID');
+
+        /**
+         * @see Walker::start_lvl()
+         * @since 2.1.0
+         *
+         * @param string $output Passed by reference. Used to append additional content.
+         * @param int $depth Depth of page. Used for padding.
+         */
+        function start_lvl(&amp;$output, $depth) {
+                $indent = str_repeat(&quot;\t&quot;, $depth);
+                $output .= &quot;\n$indent&lt;ul class='children'&gt;\n&quot;;
+        }
+
+        /**
+         * @see Walker::end_lvl()
+         * @since 2.1.0
+         *
+         * @param string $output Passed by reference. Used to append additional content.
+         * @param int $depth Depth of page. Used for padding.
+         */
+        function end_lvl(&amp;$output, $depth) {
+                $indent = str_repeat(&quot;\t&quot;, $depth);
+                $output .= &quot;$indent&lt;/ul&gt;\n&quot;;
+        }
+
+        /**
+         * @see Walker::start_el()
+         * @since 2.1.0
+         *
+         * @param string $output Passed by reference. Used to append additional content.
+         * @param object $page Page data object.
+         * @param int $depth Depth of page. Used for padding.
+         * @param int $current_page Page ID.
+         * @param array $args
+         */
+        function start_el(&amp;$output, $page, $depth, $args, $current_page) {
+                if ( $depth )
+                        $indent = str_repeat(&quot;\t&quot;, $depth);
+                else
+                        $indent = '';
+
+                extract($args, EXTR_SKIP);
+                $css_class = array('page_item', 'page-item-'.$page-&gt;ID);
+                if ( !empty($current_page) ) {
+                        $_current_page = get_page( $current_page );
+                        if ( isset($_current_page-&gt;ancestors) &amp;&amp; in_array($page-&gt;ID, (array) $_current_page-&gt;ancestors) )
+                                $css_class[] = 'current_page_ancestor';
+                        if ( $page-&gt;ID == $current_page )
+                                $css_class[] = 'current_page_item';
+                        elseif ( $_current_page &amp;&amp; $page-&gt;ID == $_current_page-&gt;post_parent )
+                                $css_class[] = 'current_page_parent';
+                } elseif ( $page-&gt;ID == get_option('page_for_posts') ) {
+                        $css_class[] = 'current_page_parent';
+                }
+
+                $css_class = implode(' ', apply_filters('page_css_class', $css_class, $page));
+
+                $output .= $indent . '&lt;li class=&quot;' . $css_class . '&quot;&gt;&lt;a href=&quot;' . get_permalink($page-&gt;ID) . '&quot; title=&quot;' . esc_attr( wp_strip_all_tags( apply_filters( 'the_title', $page-&gt;post_title, $page-&gt;ID ) ) ) . '&quot;&gt;' . $link_before . apply_filters( 'the_title', $page-&gt;post_title, $page-&gt;ID ) . $link_after . '&lt;/a&gt;';
+
+                if ( !empty($show_date) ) {
+                        if ( 'modified' == $show_date )
+                                $time = $page-&gt;post_modified;
+                        else
+                                $time = $page-&gt;post_date;
+
+                        $output .= &quot; &quot; . mysql2date($date_format, $time);
+                }
+        }
+
+        /**
+         * @see Walker::end_el()
+         * @since 2.1.0
+         *
+         * @param string $output Passed by reference. Used to append additional content.
+         * @param object $page Page data object. Not used.
+         * @param int $depth Depth of page. Not Used.
+         */
+        function end_el(&amp;$output, $page, $depth) {
+                $output .= &quot;&lt;/li&gt;\n&quot;;
+        }
+
+}
+
+/**
+ * Create HTML dropdown list of pages.
+ *
+ * @package WordPress
+ * @since 2.1.0
+ * @uses Walker
+ */
+class Walker_PageDropdown extends Walker {
+        /**
+         * @see Walker::$tree_type
+         * @since 2.1.0
+         * @var string
+         */
+        var $tree_type = 'page';
+
+        /**
+         * @see Walker::$db_fields
+         * @since 2.1.0
+         * @todo Decouple this
+         * @var array
+         */
+        var $db_fields = array ('parent' =&gt; 'post_parent', 'id' =&gt; 'ID');
+
+        /**
+         * @see Walker::start_el()
+         * @since 2.1.0
+         *
+         * @param string $output Passed by reference. Used to append additional content.
+         * @param object $page Page data object.
+         * @param int $depth Depth of page in reference to parent pages. Used for padding.
+         * @param array $args Uses 'selected' argument for selected page to set selected HTML attribute for option element.
+         */
+        function start_el(&amp;$output, $page, $depth, $args) {
+                $pad = str_repeat('&amp;nbsp;', $depth * 3);
+
+                $output .= &quot;\t&lt;option class=\&quot;level-$depth\&quot; value=\&quot;$page-&gt;ID\&quot;&quot;;
+                if ( $page-&gt;ID == $args['selected'] )
+                        $output .= ' selected=&quot;selected&quot;';
+                $output .= '&gt;';
+                $title = esc_html($page-&gt;post_title);
+                $output .= &quot;$pad$title&quot;;
+                $output .= &quot;&lt;/option&gt;\n&quot;;
+        }
+}
+
</ins><span class="cx"> //
</span><span class="cx"> // Attachments
</span><span class="cx"> //
</span></span></pre>
</div>
</div>

</body>
</html>