<!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" />
<title>[28514] trunk/src: Add missing access modifiers to methods/members in `Walker` and subclasses.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/28514">28514</a></dd>
<dt>Author</dt> <dd>wonderboymusic</dd>
<dt>Date</dt> <dd>2014-05-19 05:59:07 +0000 (Mon, 19 May 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add missing access modifiers to methods/members in `Walker` and subclasses. Add a magic `__get()` method.

See <a href="http://core.trac.wordpress.org/ticket/27881">#27881</a>, <a href="http://core.trac.wordpress.org/ticket/22234">#22234</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminincludestemplatephp">trunk/src/wp-admin/includes/template.php</a></li>
<li><a href="#trunksrcwpincludesclasswpwalkerphp">trunk/src/wp-includes/class-wp-walker.php</a></li>
<li><a href="#trunksrcwpincludescommenttemplatephp">trunk/src/wp-includes/comment-template.php</a></li>
<li><a href="#trunksrcwpincludesnavmenutemplatephp">trunk/src/wp-includes/nav-menu-template.php</a></li>
<li><a href="#trunksrcwpincludesposttemplatephp">trunk/src/wp-includes/post-template.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminincludestemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/includes/template.php (28513 => 28514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/includes/template.php 2014-05-19 05:52:24 UTC (rev 28513)
+++ trunk/src/wp-admin/includes/template.php    2014-05-19 05:59:07 UTC (rev 28514)
</span><span class="lines">@@ -21,8 +21,8 @@
</span><span class="cx">  * @since 2.5.1
</span><span class="cx">  */
</span><span class="cx"> class Walker_Category_Checklist extends Walker {
</span><del>-       var $tree_type = 'category';
-       var $db_fields = array ('parent' => 'parent', 'id' => 'term_id'); //TODO: decouple this
</del><ins>+        public $tree_type = 'category';
+       public $db_fields = array ('parent' => 'parent', 'id' => 'term_id'); //TODO: decouple this
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * Starts the list before the elements are added.
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpwalkerphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/class-wp-walker.php (28513 => 28514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/class-wp-walker.php        2014-05-19 05:52:24 UTC (rev 28513)
+++ trunk/src/wp-includes/class-wp-walker.php   2014-05-19 05:59:07 UTC (rev 28514)
</span><span class="lines">@@ -19,7 +19,7 @@
</span><span class="cx">   * @var string
</span><span class="cx">   * @access public
</span><span class="cx">   */
</span><del>-       var $tree_type;
</del><ins>+        public $tree_type;
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * DB fields to use.
</span><span class="lines">@@ -28,7 +28,7 @@
</span><span class="cx">   * @var array
</span><span class="cx">   * @access protected
</span><span class="cx">   */
</span><del>-       var $db_fields;
</del><ins>+        protected $db_fields;
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * Max number of pages walked by the paged walker
</span><span class="lines">@@ -37,9 +37,20 @@
</span><span class="cx">   * @var int
</span><span class="cx">   * @access protected
</span><span class="cx">   */
</span><del>-       var $max_pages = 1;
</del><ins>+        protected $max_pages = 1;
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><ins>+        * Make private properties readable for backwards compatibility
+        *
+        * @since 4.0.0
+        * @param string $name
+        * @return mixed
+        */
+       public function __get( $name ) {
+               return $this->$name;
+       }
+
+       /**
</ins><span class="cx">    * Starts the list before the elements are added.
</span><span class="cx">   *
</span><span class="cx">   * The $args parameter holds additional values that may be used with the child
</span><span class="lines">@@ -52,7 +63,7 @@
</span><span class="cx">   * @param int    $depth  Depth of the item.
</span><span class="cx">   * @param array  $args   An array of additional arguments.
</span><span class="cx">   */
</span><del>-       function start_lvl( &$output, $depth = 0, $args = array() ) {}
</del><ins>+        public function start_lvl( &$output, $depth = 0, $args = array() ) {}
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * Ends the list of after the elements are added.
</span><span class="lines">@@ -67,7 +78,7 @@
</span><span class="cx">   * @param int    $depth  Depth of the item.
</span><span class="cx">   * @param array  $args   An array of additional arguments.
</span><span class="cx">   */
</span><del>-       function end_lvl( &$output, $depth = 0, $args = array() ) {}
</del><ins>+        public function end_lvl( &$output, $depth = 0, $args = array() ) {}
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * Start the element output.
</span><span class="lines">@@ -84,7 +95,7 @@
</span><span class="cx">   * @param array  $args              An array of additional arguments.
</span><span class="cx">   * @param int    $current_object_id ID of the current item.
</span><span class="cx">   */
</span><del>-       function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) {}
</del><ins>+        public function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) {}
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * Ends the element output, if needed.
</span><span class="lines">@@ -99,7 +110,7 @@
</span><span class="cx">   * @param int    $depth  Depth of the item.
</span><span class="cx">   * @param array  $args   An array of additional arguments.
</span><span class="cx">   */
</span><del>-       function end_el( &$output, $object, $depth = 0, $args = array() ) {}
</del><ins>+        public function end_el( &$output, $object, $depth = 0, $args = array() ) {}
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * Traverse elements to create list from elements.
</span><span class="lines">@@ -121,7 +132,7 @@
</span><span class="cx">   * @param string $output            Passed by reference. Used to append additional content.
</span><span class="cx">   * @return null Null on failure with no changes to parameters.
</span><span class="cx">   */
</span><del>-       function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
</del><ins>+        public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
</ins><span class="cx"> 
</span><span class="cx">          if ( !$element )
</span><span class="cx">                  return;
</span><span class="lines">@@ -178,7 +189,7 @@
</span><span class="cx">   * @param int   $max_depth The maximum hierarchical depth.
</span><span class="cx">   * @return string The hierarchical item output.
</span><span class="cx">   */
</span><del>-       function walk( $elements, $max_depth) {
</del><ins>+        public function walk( $elements, $max_depth) {
</ins><span class="cx"> 
</span><span class="cx">          $args = array_slice(func_get_args(), 2);
</span><span class="cx">          $output = '';
</span><span class="lines">@@ -266,7 +277,7 @@
</span><span class="cx">           * @param int $page_num  The specific page number, beginning with 1.
</span><span class="cx">           * @return string XHTML of the specified page of elements
</span><span class="cx">           */
</span><del>-       function paged_walk( $elements, $max_depth, $page_num, $per_page ) {
</del><ins>+        public function paged_walk( $elements, $max_depth, $page_num, $per_page ) {
</ins><span class="cx"> 
</span><span class="cx">          /* sanity check */
</span><span class="cx">          if ( empty($elements) || $max_depth < -1 )
</span><span class="lines">@@ -373,7 +384,7 @@
</span><span class="cx">          return $output;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function get_number_of_root_elements( $elements ){
</del><ins>+        public function get_number_of_root_elements( $elements ){
</ins><span class="cx"> 
</span><span class="cx">          $num = 0;
</span><span class="cx">          $parent_field = $this->db_fields['parent'];
</span><span class="lines">@@ -386,7 +397,7 @@
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="cx">  // Unset all the children for a given top level element.
</span><del>-       function unset_children( $e, &$children_elements ){
</del><ins>+        public function unset_children( $e, &$children_elements ){
</ins><span class="cx"> 
</span><span class="cx">          if ( !$e || !$children_elements )
</span><span class="cx">                  return;
</span></span></pre></div>
<a id="trunksrcwpincludescommenttemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/comment-template.php (28513 => 28514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/comment-template.php       2014-05-19 05:52:24 UTC (rev 28513)
+++ trunk/src/wp-includes/comment-template.php  2014-05-19 05:59:07 UTC (rev 28514)
</span><span class="lines">@@ -1558,7 +1558,7 @@
</span><span class="cx">   * @since 2.7.0
</span><span class="cx">   * @var string
</span><span class="cx">   */
</span><del>-       var $tree_type = 'comment';
</del><ins>+        public $tree_type = 'comment';
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * DB fields to use.
</span><span class="lines">@@ -1568,7 +1568,7 @@
</span><span class="cx">   * @since 2.7.0
</span><span class="cx">   * @var array
</span><span class="cx">   */
</span><del>-       var $db_fields = array ('parent' => 'comment_parent', 'id' => 'comment_ID');
</del><ins>+        public $db_fields = array ('parent' => 'comment_parent', 'id' => 'comment_ID');
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * Start the list before the elements are added.
</span><span class="lines">@@ -1581,7 +1581,7 @@
</span><span class="cx">   * @param int $depth Depth of comment.
</span><span class="cx">   * @param array $args Uses 'style' argument for type of HTML list.
</span><span class="cx">   */
</span><del>-       function start_lvl( &$output, $depth = 0, $args = array() ) {
</del><ins>+        public function start_lvl( &$output, $depth = 0, $args = array() ) {
</ins><span class="cx">           $GLOBALS['comment_depth'] = $depth + 1;
</span><span class="cx"> 
</span><span class="cx">          switch ( $args['style'] ) {
</span><span class="lines">@@ -1608,7 +1608,7 @@
</span><span class="cx">   * @param int    $depth  Depth of comment.
</span><span class="cx">   * @param array  $args   Will only append content if style argument value is 'ol' or 'ul'.
</span><span class="cx">   */
</span><del>-       function end_lvl( &$output, $depth = 0, $args = array() ) {
</del><ins>+        public function end_lvl( &$output, $depth = 0, $args = array() ) {
</ins><span class="cx">           $GLOBALS['comment_depth'] = $depth + 1;
</span><span class="cx"> 
</span><span class="cx">          switch ( $args['style'] ) {
</span><span class="lines">@@ -1656,7 +1656,7 @@
</span><span class="cx">   * @param string $output            Passed by reference. Used to append additional content.
</span><span class="cx">   * @return null Null on failure with no changes to parameters.
</span><span class="cx">   */
</span><del>-       function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
</del><ins>+        public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
</ins><span class="cx"> 
</span><span class="cx">          if ( !$element )
</span><span class="cx">                  return;
</span><span class="lines">@@ -1690,7 +1690,7 @@
</span><span class="cx">   * @param int    $depth   Depth of comment in reference to parents.
</span><span class="cx">   * @param array  $args    An array of arguments.
</span><span class="cx">   */
</span><del>-       function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) {
</del><ins>+        public function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) {
</ins><span class="cx">           $depth++;
</span><span class="cx">          $GLOBALS['comment_depth'] = $depth;
</span><span class="cx">          $GLOBALS['comment'] = $comment;
</span><span class="lines">@@ -1730,7 +1730,7 @@
</span><span class="cx">   * @param int    $depth   Depth of comment.
</span><span class="cx">   * @param array  $args    An array of arguments.
</span><span class="cx">   */
</span><del>-       function end_el( &$output, $comment, $depth = 0, $args = array() ) {
</del><ins>+        public function end_el( &$output, $comment, $depth = 0, $args = array() ) {
</ins><span class="cx">           if ( !empty( $args['end-callback'] ) ) {
</span><span class="cx">                  ob_start();
</span><span class="cx">                  call_user_func( $args['end-callback'], $comment, $args, $depth );
</span></span></pre></div>
<a id="trunksrcwpincludesnavmenutemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/nav-menu-template.php (28513 => 28514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/nav-menu-template.php      2014-05-19 05:52:24 UTC (rev 28513)
+++ trunk/src/wp-includes/nav-menu-template.php 2014-05-19 05:59:07 UTC (rev 28514)
</span><span class="lines">@@ -21,7 +21,7 @@
</span><span class="cx">   * @since 3.0.0
</span><span class="cx">   * @var string
</span><span class="cx">   */
</span><del>-       var $tree_type = array( 'post_type', 'taxonomy', 'custom' );
</del><ins>+        public $tree_type = array( 'post_type', 'taxonomy', 'custom' );
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * Database fields to use.
</span><span class="lines">@@ -31,7 +31,7 @@
</span><span class="cx">   * @todo Decouple this.
</span><span class="cx">   * @var array
</span><span class="cx">   */
</span><del>-       var $db_fields = array( 'parent' => 'menu_item_parent', 'id' => 'db_id' );
</del><ins>+        public $db_fields = array( 'parent' => 'menu_item_parent', 'id' => 'db_id' );
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * Starts the list before the elements are added.
</span><span class="lines">@@ -44,7 +44,7 @@
</span><span class="cx">   * @param int    $depth  Depth of menu item. Used for padding.
</span><span class="cx">   * @param array  $args   An array of arguments. @see wp_nav_menu()
</span><span class="cx">   */
</span><del>-       function start_lvl( &$output, $depth = 0, $args = array() ) {
</del><ins>+        public function start_lvl( &$output, $depth = 0, $args = array() ) {
</ins><span class="cx">           $indent = str_repeat("\t", $depth);
</span><span class="cx">          $output .= "\n$indent<ul class=\"sub-menu\">\n";
</span><span class="cx">  }
</span><span class="lines">@@ -60,7 +60,7 @@
</span><span class="cx">   * @param int    $depth  Depth of menu item. Used for padding.
</span><span class="cx">   * @param array  $args   An array of arguments. @see wp_nav_menu()
</span><span class="cx">   */
</span><del>-       function end_lvl( &$output, $depth = 0, $args = array() ) {
</del><ins>+        public function end_lvl( &$output, $depth = 0, $args = array() ) {
</ins><span class="cx">           $indent = str_repeat("\t", $depth);
</span><span class="cx">          $output .= "$indent</ul>\n";
</span><span class="cx">  }
</span><span class="lines">@@ -78,7 +78,7 @@
</span><span class="cx">   * @param array  $args   An array of arguments. @see wp_nav_menu()
</span><span class="cx">   * @param int    $id     Current item ID.
</span><span class="cx">   */
</span><del>-       function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
</del><ins>+        public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
</ins><span class="cx">           $indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
</span><span class="cx"> 
</span><span class="cx">          $classes = empty( $item->classes ) ? array() : (array) $item->classes;
</span><span class="lines">@@ -186,7 +186,7 @@
</span><span class="cx">   * @param int    $depth  Depth of page. Not Used.
</span><span class="cx">   * @param array  $args   An array of arguments. @see wp_nav_menu()
</span><span class="cx">   */
</span><del>-       function end_el( &$output, $item, $depth = 0, $args = array() ) {
</del><ins>+        public function end_el( &$output, $item, $depth = 0, $args = array() ) {
</ins><span class="cx">           $output .= "</li>\n";
</span><span class="cx">  }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunksrcwpincludesposttemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/post-template.php (28513 => 28514)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/post-template.php  2014-05-19 05:52:24 UTC (rev 28513)
+++ trunk/src/wp-includes/post-template.php     2014-05-19 05:59:07 UTC (rev 28514)
</span><span class="lines">@@ -1226,7 +1226,7 @@
</span><span class="cx">   * @since 2.1.0
</span><span class="cx">   * @var string
</span><span class="cx">   */
</span><del>-       var $tree_type = 'page';
</del><ins>+        public $tree_type = 'page';
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * @see Walker::$db_fields
</span><span class="lines">@@ -1234,7 +1234,7 @@
</span><span class="cx">   * @todo Decouple this.
</span><span class="cx">   * @var array
</span><span class="cx">   */
</span><del>-       var $db_fields = array ('parent' => 'post_parent', 'id' => 'ID');
</del><ins>+        public $db_fields = array ('parent' => 'post_parent', 'id' => 'ID');
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * @see Walker::start_lvl()
</span><span class="lines">@@ -1244,7 +1244,7 @@
</span><span class="cx">   * @param int $depth Depth of page. Used for padding.
</span><span class="cx">   * @param array $args
</span><span class="cx">   */
</span><del>-       function start_lvl( &$output, $depth = 0, $args = array() ) {
</del><ins>+        public function start_lvl( &$output, $depth = 0, $args = array() ) {
</ins><span class="cx">           $indent = str_repeat("\t", $depth);
</span><span class="cx">          $output .= "\n$indent<ul class='children'>\n";
</span><span class="cx">  }
</span><span class="lines">@@ -1257,7 +1257,7 @@
</span><span class="cx">   * @param int $depth Depth of page. Used for padding.
</span><span class="cx">   * @param array $args
</span><span class="cx">   */
</span><del>-       function end_lvl( &$output, $depth = 0, $args = array() ) {
</del><ins>+        public function end_lvl( &$output, $depth = 0, $args = array() ) {
</ins><span class="cx">           $indent = str_repeat("\t", $depth);
</span><span class="cx">          $output .= "$indent</ul>\n";
</span><span class="cx">  }
</span><span class="lines">@@ -1272,7 +1272,7 @@
</span><span class="cx">   * @param int $current_page Page ID.
</span><span class="cx">   * @param array $args
</span><span class="cx">   */
</span><del>-       function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) {
</del><ins>+        public function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) {
</ins><span class="cx">           if ( $depth ) {
</span><span class="cx">                  $indent = str_repeat( "\t", $depth );
</span><span class="cx">          } else {
</span><span class="lines">@@ -1353,7 +1353,7 @@
</span><span class="cx">   * @param int $depth Depth of page. Not Used.
</span><span class="cx">   * @param array $args
</span><span class="cx">   */
</span><del>-       function end_el( &$output, $page, $depth = 0, $args = array() ) {
</del><ins>+        public function end_el( &$output, $page, $depth = 0, $args = array() ) {
</ins><span class="cx">           $output .= "</li>\n";
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="lines">@@ -1371,7 +1371,7 @@
</span><span class="cx">   * @since 2.1.0
</span><span class="cx">   * @var string
</span><span class="cx">   */
</span><del>-       var $tree_type = 'page';
</del><ins>+        public $tree_type = 'page';
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * @see Walker::$db_fields
</span><span class="lines">@@ -1379,7 +1379,7 @@
</span><span class="cx">   * @todo Decouple this
</span><span class="cx">   * @var array
</span><span class="cx">   */
</span><del>-       var $db_fields = array ('parent' => 'post_parent', 'id' => 'ID');
</del><ins>+        public $db_fields = array ('parent' => 'post_parent', 'id' => 'ID');
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * @see Walker::start_el()
</span><span class="lines">@@ -1391,7 +1391,7 @@
</span><span class="cx">   * @param array $args Uses 'selected' argument for selected page to set selected HTML attribute for option element.
</span><span class="cx">   * @param int $id
</span><span class="cx">   */
</span><del>-       function start_el( &$output, $page, $depth = 0, $args = array(), $id = 0 ) {
</del><ins>+        public function start_el( &$output, $page, $depth = 0, $args = array(), $id = 0 ) {
</ins><span class="cx">           $pad = str_repeat('&nbsp;', $depth * 3);
</span><span class="cx"> 
</span><span class="cx">          $output .= "\t<option class=\"level-$depth\" value=\"$page->ID\"";
</span></span></pre>
</div>
</div>

</body>
</html>