<!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>[28533] trunk/src/wp-includes: `WP_Query` was only missing one access modifier.</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/28533">28533</a></dd>
<dt>Author</dt> <dd>wonderboymusic</dd>
<dt>Date</dt> <dd>2014-05-19 17:40:08 +0000 (Mon, 19 May 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>`WP_Query` was only missing one access modifier.

Add access modifier (`public`) to applicable class methods/members of `WP_Rewrite`. I am not brave enough to set some of the `var`s to `private` without more testing.

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="#trunksrcwpincludesqueryphp">trunk/src/wp-includes/query.php</a></li>
<li><a href="#trunksrcwpincludesrewritephp">trunk/src/wp-includes/rewrite.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesqueryphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/query.php (28532 => 28533)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/query.php  2014-05-19 17:29:42 UTC (rev 28532)
+++ trunk/src/wp-includes/query.php     2014-05-19 17:40:08 UTC (rev 28533)
</span><span class="lines">@@ -3422,7 +3422,7 @@
</span><span class="cx">   * @since 3.5.0
</span><span class="cx">   * @access private
</span><span class="cx">   */
</span><del>-       function set_found_posts( $q, $limits ) {
</del><ins>+        private function set_found_posts( $q, $limits ) {
</ins><span class="cx">           global $wpdb;
</span><span class="cx"> 
</span><span class="cx">          // Bail if posts is an empty array. Continue if posts is an empty string,
</span></span></pre></div>
<a id="trunksrcwpincludesrewritephp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/rewrite.php (28532 => 28533)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/rewrite.php        2014-05-19 17:29:42 UTC (rev 28532)
+++ trunk/src/wp-includes/rewrite.php   2014-05-19 17:40:08 UTC (rev 28533)
</span><span class="lines">@@ -571,7 +571,7 @@
</span><span class="cx">   * @access public
</span><span class="cx">   * @var string
</span><span class="cx">   */
</span><del>-       var $index = 'index.php';
</del><ins>+        public $index = 'index.php';
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * Variable name to use for regex matches in the rewritten query.
</span><span class="lines">@@ -654,7 +654,7 @@
</span><span class="cx">   * @access public
</span><span class="cx">   * @var bool
</span><span class="cx">   */
</span><del>-       var $use_verbose_rules = false;
</del><ins>+        public $use_verbose_rules = false;
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * Could post permalinks be confused with those of pages?
</span><span class="lines">@@ -672,7 +672,7 @@
</span><span class="cx">   * @access public
</span><span class="cx">   * @var bool
</span><span class="cx">   */
</span><del>-       var $use_verbose_page_rules = true;
</del><ins>+        public $use_verbose_page_rules = true;
</ins><span class="cx"> 
</span><span class="cx">  /**
</span><span class="cx">   * Rewrite tags that can be used in permalink structures.
</span><span class="lines">@@ -763,7 +763,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return bool True, if permalinks are enabled.
</span><span class="cx">   */
</span><del>-       function using_permalinks() {
</del><ins>+        public function using_permalinks() {
</ins><span class="cx">           return ! empty($this->permalink_structure);
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="lines">@@ -777,7 +777,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return bool
</span><span class="cx">   */
</span><del>-       function using_index_permalinks() {
</del><ins>+        public function using_index_permalinks() {
</ins><span class="cx">           if ( empty($this->permalink_structure) )
</span><span class="cx">                  return false;
</span><span class="cx"> 
</span><span class="lines">@@ -798,7 +798,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return bool
</span><span class="cx">   */
</span><del>-       function using_mod_rewrite_permalinks() {
</del><ins>+        public function using_mod_rewrite_permalinks() {
</ins><span class="cx">           if ( $this->using_permalinks() && ! $this->using_index_permalinks() )
</span><span class="cx">                  return true;
</span><span class="cx">          else
</span><span class="lines">@@ -821,7 +821,7 @@
</span><span class="cx">   * @param int $number Index number.
</span><span class="cx">   * @return string
</span><span class="cx">   */
</span><del>-       function preg_index($number) {
</del><ins>+        public function preg_index($number) {
</ins><span class="cx">           $match_prefix = '$';
</span><span class="cx">          $match_suffix = '';
</span><span class="cx"> 
</span><span class="lines">@@ -844,7 +844,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return array Array of page URIs as first element and attachment URIs as second element.
</span><span class="cx">   */
</span><del>-       function page_uri_index() {
</del><ins>+        public function page_uri_index() {
</ins><span class="cx">           global $wpdb;
</span><span class="cx"> 
</span><span class="cx">          //get pages in order of hierarchy, i.e. children after parents
</span><span class="lines">@@ -886,7 +886,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return array
</span><span class="cx">   */
</span><del>-       function page_rewrite_rules() {
</del><ins>+        public function page_rewrite_rules() {
</ins><span class="cx">           // the extra .? at the beginning prevents clashes with other regular expressions in the rules array
</span><span class="cx">          $this->add_rewrite_tag( '%pagename%', '(.?.+?)', 'pagename=' );
</span><span class="cx"> 
</span><span class="lines">@@ -913,7 +913,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return bool|string False on no permalink structure. Date permalink structure.
</span><span class="cx">   */
</span><del>-       function get_date_permastruct() {
</del><ins>+        public function get_date_permastruct() {
</ins><span class="cx">           if ( isset($this->date_structure) )
</span><span class="cx">                  return $this->date_structure;
</span><span class="cx"> 
</span><span class="lines">@@ -967,7 +967,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return bool|string False on failure. Year structure on success.
</span><span class="cx">   */
</span><del>-       function get_year_permastruct() {
</del><ins>+        public function get_year_permastruct() {
</ins><span class="cx">           $structure = $this->get_date_permastruct();
</span><span class="cx"> 
</span><span class="cx">          if ( empty($structure) )
</span><span class="lines">@@ -992,7 +992,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return bool|string False on failure. Year/Month structure on success.
</span><span class="cx">   */
</span><del>-       function get_month_permastruct() {
</del><ins>+        public function get_month_permastruct() {
</ins><span class="cx">           $structure = $this->get_date_permastruct();
</span><span class="cx"> 
</span><span class="cx">          if ( empty($structure) )
</span><span class="lines">@@ -1015,7 +1015,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return bool|string False on failure. Year/Month/Day structure on success.
</span><span class="cx">   */
</span><del>-       function get_day_permastruct() {
</del><ins>+        public function get_day_permastruct() {
</ins><span class="cx">           return $this->get_date_permastruct();
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="lines">@@ -1032,7 +1032,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return bool|string False on failure. Category permalink structure.
</span><span class="cx">   */
</span><del>-       function get_category_permastruct() {
</del><ins>+        public function get_category_permastruct() {
</ins><span class="cx">           return $this->get_extra_permastruct('category');
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="lines">@@ -1049,7 +1049,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return bool|string False on failure. Tag permalink structure.
</span><span class="cx">   */
</span><del>-       function get_tag_permastruct() {
</del><ins>+        public function get_tag_permastruct() {
</ins><span class="cx">           return $this->get_extra_permastruct('post_tag');
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="lines">@@ -1062,7 +1062,7 @@
</span><span class="cx">   * @param string $name Permalink structure name.
</span><span class="cx">   * @return string|bool False if not found. Permalink structure string.
</span><span class="cx">   */
</span><del>-       function get_extra_permastruct($name) {
</del><ins>+        public function get_extra_permastruct($name) {
</ins><span class="cx">           if ( empty($this->permalink_structure) )
</span><span class="cx">                  return false;
</span><span class="cx"> 
</span><span class="lines">@@ -1084,7 +1084,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return string|bool False if not found. Permalink structure string.
</span><span class="cx">   */
</span><del>-       function get_author_permastruct() {
</del><ins>+        public function get_author_permastruct() {
</ins><span class="cx">           if ( isset($this->author_structure) )
</span><span class="cx">                  return $this->author_structure;
</span><span class="cx"> 
</span><span class="lines">@@ -1110,7 +1110,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return string|bool False if not found. Permalink structure string.
</span><span class="cx">   */
</span><del>-       function get_search_permastruct() {
</del><ins>+        public function get_search_permastruct() {
</ins><span class="cx">           if ( isset($this->search_structure) )
</span><span class="cx">                  return $this->search_structure;
</span><span class="cx"> 
</span><span class="lines">@@ -1136,7 +1136,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return string|bool False if not found. Permalink structure string.
</span><span class="cx">   */
</span><del>-       function get_page_permastruct() {
</del><ins>+        public function get_page_permastruct() {
</ins><span class="cx">           if ( isset($this->page_structure) )
</span><span class="cx">                  return $this->page_structure;
</span><span class="cx"> 
</span><span class="lines">@@ -1162,7 +1162,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return string|bool False if not found. Permalink structure string.
</span><span class="cx">   */
</span><del>-       function get_feed_permastruct() {
</del><ins>+        public function get_feed_permastruct() {
</ins><span class="cx">           if ( isset($this->feed_structure) )
</span><span class="cx">                  return $this->feed_structure;
</span><span class="cx"> 
</span><span class="lines">@@ -1188,7 +1188,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return string|bool False if not found. Permalink structure string.
</span><span class="cx">   */
</span><del>-       function get_comment_feed_permastruct() {
</del><ins>+        public function get_comment_feed_permastruct() {
</ins><span class="cx">           if ( isset($this->comment_feed_structure) )
</span><span class="cx">                  return $this->comment_feed_structure;
</span><span class="cx"> 
</span><span class="lines">@@ -1218,7 +1218,7 @@
</span><span class="cx">   * @param string $regex Regular expression to substitute the tag for in rewrite rules.
</span><span class="cx">   * @param string $query String to append to the rewritten query. Must end in '='.
</span><span class="cx">   */
</span><del>-       function add_rewrite_tag( $tag, $regex, $query ) {
</del><ins>+        public function add_rewrite_tag( $tag, $regex, $query ) {
</ins><span class="cx">           $position = array_search( $tag, $this->rewritecode );
</span><span class="cx">          if ( false !== $position && null !== $position ) {
</span><span class="cx">                  $this->rewritereplace[ $position ] = $regex;
</span><span class="lines">@@ -1250,7 +1250,7 @@
</span><span class="cx">   * @param bool $endpoints Should endpoints be applied to the generated rewrite rules? Default is true.
</span><span class="cx">   * @return array Rewrite rule list.
</span><span class="cx">   */
</span><del>-       function generate_rewrite_rules($permalink_structure, $ep_mask = EP_NONE, $paged = true, $feed = true, $forcomments = false, $walk_dirs = true, $endpoints = true) {
</del><ins>+        public function generate_rewrite_rules($permalink_structure, $ep_mask = EP_NONE, $paged = true, $feed = true, $forcomments = false, $walk_dirs = true, $endpoints = true) {
</ins><span class="cx">           //build a regex to match the feed section of URLs, something like (feed|atom|rss|rss2)/?
</span><span class="cx">          $feedregex2 = '';
</span><span class="cx">          foreach ( (array) $this->feeds as $feed_name)
</span><span class="lines">@@ -1520,7 +1520,7 @@
</span><span class="cx">   * @param bool $walk_dirs Optional, default is false. Whether to create list of directories to walk over.
</span><span class="cx">   * @return array
</span><span class="cx">   */
</span><del>-       function generate_rewrite_rule($permalink_structure, $walk_dirs = false) {
</del><ins>+        public function generate_rewrite_rule($permalink_structure, $walk_dirs = false) {
</ins><span class="cx">           return $this->generate_rewrite_rules($permalink_structure, EP_NONE, false, false, false, $walk_dirs);
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="lines">@@ -1542,7 +1542,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return array An associate array of matches and queries.
</span><span class="cx">   */
</span><del>-       function rewrite_rules() {
</del><ins>+        public function rewrite_rules() {
</ins><span class="cx">           $rewrite = array();
</span><span class="cx"> 
</span><span class="cx">          if ( empty($this->permalink_structure) )
</span><span class="lines">@@ -1744,7 +1744,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return array Rewrite rules.
</span><span class="cx">   */
</span><del>-       function wp_rewrite_rules() {
</del><ins>+        public function wp_rewrite_rules() {
</ins><span class="cx">           $this->rules = get_option('rewrite_rules');
</span><span class="cx">          if ( empty($this->rules) ) {
</span><span class="cx">                  $this->matches = 'matches';
</span><span class="lines">@@ -1769,7 +1769,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return string
</span><span class="cx">   */
</span><del>-       function mod_rewrite_rules() {
</del><ins>+        public function mod_rewrite_rules() {
</ins><span class="cx">           if ( ! $this->using_permalinks() )
</span><span class="cx">                  return '';
</span><span class="cx"> 
</span><span class="lines">@@ -1867,7 +1867,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return string
</span><span class="cx">   */
</span><del>-       function iis7_url_rewrite_rules( $add_parent_tags = false ) {
</del><ins>+        public function iis7_url_rewrite_rules( $add_parent_tags = false ) {
</ins><span class="cx"> 
</span><span class="cx">          if ( ! $this->using_permalinks() )
</span><span class="cx">                  return '';
</span><span class="lines">@@ -1922,7 +1922,7 @@
</span><span class="cx">   * @param string $redirect URL regex redirects to when regex matches request.
</span><span class="cx">   * @param string $after Optional, default is bottom. Location to place rule.
</span><span class="cx">   */
</span><del>-       function add_rule($regex, $redirect, $after = 'bottom') {
</del><ins>+        public function add_rule($regex, $redirect, $after = 'bottom') {
</ins><span class="cx">           //get everything up to the first ?
</span><span class="cx">          $index = (strpos($redirect, '?') == false ? strlen($redirect) : strpos($redirect, '?'));
</span><span class="cx">          $front = substr($redirect, 0, $index);
</span><span class="lines">@@ -1948,7 +1948,7 @@
</span><span class="cx">   * @param string $regex Regular expression to match against request.
</span><span class="cx">   * @param string $redirect URL regex redirects to when regex matches request.
</span><span class="cx">   */
</span><del>-       function add_external_rule($regex, $redirect) {
</del><ins>+        public function add_external_rule($regex, $redirect) {
</ins><span class="cx">           $this->non_wp_rules[$regex] = $redirect;
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="lines">@@ -1966,7 +1966,7 @@
</span><span class="cx">   * @param int    $places    Endpoint mask describing the places the endpoint should be added.
</span><span class="cx">   * @param string $query_var Name of the corresponding query variable. Default is value of $name.
</span><span class="cx">   */
</span><del>-       function add_endpoint( $name, $places, $query_var = null ) {
</del><ins>+        public function add_endpoint( $name, $places, $query_var = null ) {
</ins><span class="cx">           global $wp;
</span><span class="cx">          if ( null === $query_var ) {
</span><span class="cx">                  $query_var = $name;
</span><span class="lines">@@ -2003,7 +2003,7 @@
</span><span class="cx">   *                          rules built for each in turn? Default is true.
</span><span class="cx">   *     - endpoints (bool) - Should endpoints be applied to the generated rewrite rules? Default is true.
</span><span class="cx">   */
</span><del>-       function add_permastruct( $name, $struct, $args = array() ) {
</del><ins>+        public function add_permastruct( $name, $struct, $args = array() ) {
</ins><span class="cx">           // backwards compatibility for the old parameters: $with_front and $ep_mask
</span><span class="cx">          if ( ! is_array( $args ) )
</span><span class="cx">                  $args = array( 'with_front' => $args );
</span><span class="lines">@@ -2042,7 +2042,7 @@
</span><span class="cx">   * @access public
</span><span class="cx">   * @param bool $hard Whether to update .htaccess (hard flush) or just update rewrite_rules option (soft flush). Default is true (hard).
</span><span class="cx">   */
</span><del>-       function flush_rules($hard = true) {
</del><ins>+        public function flush_rules($hard = true) {
</ins><span class="cx">           delete_option('rewrite_rules');
</span><span class="cx">          $this->wp_rewrite_rules();
</span><span class="cx">          /**
</span><span class="lines">@@ -2073,7 +2073,7 @@
</span><span class="cx">   * @since 1.5.0
</span><span class="cx">   * @access public
</span><span class="cx">   */
</span><del>-       function init() {
</del><ins>+        public function init() {
</ins><span class="cx">           $this->extra_rules = $this->non_wp_rules = $this->endpoints = array();
</span><span class="cx">          $this->permalink_structure = get_option('permalink_structure');
</span><span class="cx">          $this->front = substr($this->permalink_structure, 0, strpos($this->permalink_structure, '%'));
</span><span class="lines">@@ -2110,7 +2110,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @param string $permalink_structure Permalink structure.
</span><span class="cx">   */
</span><del>-       function set_permalink_structure($permalink_structure) {
</del><ins>+        public function set_permalink_structure($permalink_structure) {
</ins><span class="cx">           if ( $permalink_structure != $this->permalink_structure ) {
</span><span class="cx">                  $old_permalink_structure = $this->permalink_structure;
</span><span class="cx">                  update_option('permalink_structure', $permalink_structure);
</span><span class="lines">@@ -2140,7 +2140,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @param string $category_base Category permalink structure base.
</span><span class="cx">   */
</span><del>-       function set_category_base($category_base) {
</del><ins>+        public function set_category_base($category_base) {
</ins><span class="cx">           if ( $category_base != get_option('category_base') ) {
</span><span class="cx">                  update_option('category_base', $category_base);
</span><span class="cx">                  $this->init();
</span><span class="lines">@@ -2159,7 +2159,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @param string $tag_base Tag permalink structure base.
</span><span class="cx">   */
</span><del>-       function set_tag_base( $tag_base ) {
</del><ins>+        public function set_tag_base( $tag_base ) {
</ins><span class="cx">           if ( $tag_base != get_option( 'tag_base') ) {
</span><span class="cx">                  update_option( 'tag_base', $tag_base );
</span><span class="cx">                  $this->init();
</span><span class="lines">@@ -2174,7 +2174,7 @@
</span><span class="cx">   *
</span><span class="cx">   * @return WP_Rewrite
</span><span class="cx">   */
</span><del>-       function __construct() {
</del><ins>+        public function __construct() {
</ins><span class="cx">           $this->init();
</span><span class="cx">  }
</span><span class="cx"> }
</span></span></pre>
</div>
</div>

</body>
</html>