<!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>[28532] trunk/src/wp-includes: `WP_Date_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/28532">28532</a></dd>
<dt>Author</dt> <dd>wonderboymusic</dd>
<dt>Date</dt> <dd>2014-05-19 17:29:42 +0000 (Mon, 19 May 2014)</dd>
</dl>

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

Add access modifier (`public`) to all default widgets' class methods.

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="#trunksrcwpincludesdatephp">trunk/src/wp-includes/date.php</a></li>
<li><a href="#trunksrcwpincludesdefaultwidgetsphp">trunk/src/wp-includes/default-widgets.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesdatephp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/date.php (28531 => 28532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/date.php   2014-05-19 17:19:09 UTC (rev 28531)
+++ trunk/src/wp-includes/date.php      2014-05-19 17:29:42 UTC (rev 28532)
</span><span class="lines">@@ -105,7 +105,7 @@
</span><span class="cx">   *                              Accepts 'post_date', 'post_date_gmt', 'post_modified', 'post_modified_gmt',
</span><span class="cx">   *                              'comment_date', 'comment_date_gmt'.
</span><span class="cx">   */
</span><del>-       function __construct( $date_query, $default_column = 'post_date' ) {
</del><ins>+        public function __construct( $date_query, $default_column = 'post_date' ) {
</ins><span class="cx">           if ( empty( $date_query ) || ! is_array( $date_query ) )
</span><span class="cx">                  return;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunksrcwpincludesdefaultwidgetsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/default-widgets.php (28531 => 28532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/default-widgets.php        2014-05-19 17:19:09 UTC (rev 28531)
+++ trunk/src/wp-includes/default-widgets.php   2014-05-19 17:29:42 UTC (rev 28532)
</span><span class="lines">@@ -13,12 +13,12 @@
</span><span class="cx">  */
</span><span class="cx"> class WP_Widget_Pages extends WP_Widget {
</span><span class="cx"> 
</span><del>-       function __construct() {
</del><ins>+        public function __construct() {
</ins><span class="cx">           $widget_ops = array('classname' => 'widget_pages', 'description' => __( 'A list of your site&#8217;s Pages.') );
</span><span class="cx">          parent::__construct('pages', __('Pages'), $widget_ops);
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function widget( $args, $instance ) {
</del><ins>+        public function widget( $args, $instance ) {
</ins><span class="cx"> 
</span><span class="cx">          /**
</span><span class="cx">           * Filter the widget title.
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx">          }
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function update( $new_instance, $old_instance ) {
</del><ins>+        public function update( $new_instance, $old_instance ) {
</ins><span class="cx">           $instance = $old_instance;
</span><span class="cx">          $instance['title'] = strip_tags($new_instance['title']);
</span><span class="cx">          if ( in_array( $new_instance['sortby'], array( 'post_title', 'menu_order', 'ID' ) ) ) {
</span><span class="lines">@@ -81,7 +81,7 @@
</span><span class="cx">          return $instance;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function form( $instance ) {
</del><ins>+        public function form( $instance ) {
</ins><span class="cx">           //Defaults
</span><span class="cx">          $instance = wp_parse_args( (array) $instance, array( 'sortby' => 'post_title', 'title' => '', 'exclude' => '') );
</span><span class="cx">          $title = esc_attr( $instance['title'] );
</span><span class="lines">@@ -113,12 +113,12 @@
</span><span class="cx">  */
</span><span class="cx"> class WP_Widget_Links extends WP_Widget {
</span><span class="cx"> 
</span><del>-       function __construct() {
</del><ins>+        public function __construct() {
</ins><span class="cx">           $widget_ops = array('description' => __( "Your blogroll" ) );
</span><span class="cx">          parent::__construct('links', __('Links'), $widget_ops);
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function widget( $args, $instance ) {
</del><ins>+        public function widget( $args, $instance ) {
</ins><span class="cx"> 
</span><span class="cx">          $show_description = isset($instance['description']) ? $instance['description'] : false;
</span><span class="cx">          $show_name = isset($instance['name']) ? $instance['name'] : false;
</span><span class="lines">@@ -151,7 +151,7 @@
</span><span class="cx">          ) ) );
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function update( $new_instance, $old_instance ) {
</del><ins>+        public function update( $new_instance, $old_instance ) {
</ins><span class="cx">           $new_instance = (array) $new_instance;
</span><span class="cx">          $instance = array( 'images' => 0, 'name' => 0, 'description' => 0, 'rating' => 0 );
</span><span class="cx">          foreach ( $instance as $field => $val ) {
</span><span class="lines">@@ -169,7 +169,7 @@
</span><span class="cx">          return $instance;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function form( $instance ) {
</del><ins>+        public function form( $instance ) {
</ins><span class="cx"> 
</span><span class="cx">          //Defaults
</span><span class="cx">          $instance = wp_parse_args( (array) $instance, array( 'images' => true, 'name' => true, 'description' => false, 'rating' => false, 'category' => false, 'orderby' => 'name', 'limit' => -1 ) );
</span><span class="lines">@@ -222,12 +222,12 @@
</span><span class="cx">  */
</span><span class="cx"> class WP_Widget_Search extends WP_Widget {
</span><span class="cx"> 
</span><del>-       function __construct() {
</del><ins>+        public function __construct() {
</ins><span class="cx">           $widget_ops = array('classname' => 'widget_search', 'description' => __( "A search form for your site.") );
</span><span class="cx">          parent::__construct( 'search', _x( 'Search', 'Search widget' ), $widget_ops );
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function widget( $args, $instance ) {
</del><ins>+        public function widget( $args, $instance ) {
</ins><span class="cx"> 
</span><span class="cx">          /** This filter is documented in wp-includes/default-widgets.php */
</span><span class="cx">          $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
</span><span class="lines">@@ -243,7 +243,7 @@
</span><span class="cx">          echo $args['after_widget'];
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function form( $instance ) {
</del><ins>+        public function form( $instance ) {
</ins><span class="cx">           $instance = wp_parse_args( (array) $instance, array( 'title' => '') );
</span><span class="cx">          $title = $instance['title'];
</span><span class="cx"> ?>
</span><span class="lines">@@ -251,7 +251,7 @@
</span><span class="cx"> <?php
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function update( $new_instance, $old_instance ) {
</del><ins>+        public function update( $new_instance, $old_instance ) {
</ins><span class="cx">           $instance = $old_instance;
</span><span class="cx">          $new_instance = wp_parse_args((array) $new_instance, array( 'title' => ''));
</span><span class="cx">          $instance['title'] = strip_tags($new_instance['title']);
</span><span class="lines">@@ -267,12 +267,12 @@
</span><span class="cx">  */
</span><span class="cx"> class WP_Widget_Archives extends WP_Widget {
</span><span class="cx"> 
</span><del>-       function __construct() {
</del><ins>+        public function __construct() {
</ins><span class="cx">           $widget_ops = array('classname' => 'widget_archive', 'description' => __( 'A monthly archive of your site&#8217;s Posts.') );
</span><span class="cx">          parent::__construct('archives', __('Archives'), $widget_ops);
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function widget( $args, $instance ) {
</del><ins>+        public function widget( $args, $instance ) {
</ins><span class="cx">           $c = ! empty( $instance['count'] ) ? '1' : '0';
</span><span class="cx">          $d = ! empty( $instance['dropdown'] ) ? '1' : '0';
</span><span class="cx"> 
</span><span class="lines">@@ -332,7 +332,7 @@
</span><span class="cx">          echo $args['after_widget'];
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function update( $new_instance, $old_instance ) {
</del><ins>+        public function update( $new_instance, $old_instance ) {
</ins><span class="cx">           $instance = $old_instance;
</span><span class="cx">          $new_instance = wp_parse_args( (array) $new_instance, array( 'title' => '', 'count' => 0, 'dropdown' => '') );
</span><span class="cx">          $instance['title'] = strip_tags($new_instance['title']);
</span><span class="lines">@@ -342,7 +342,7 @@
</span><span class="cx">          return $instance;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function form( $instance ) {
</del><ins>+        public function form( $instance ) {
</ins><span class="cx">           $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'count' => 0, 'dropdown' => '') );
</span><span class="cx">          $title = strip_tags($instance['title']);
</span><span class="cx">          $count = $instance['count'] ? 'checked="checked"' : '';
</span><span class="lines">@@ -367,12 +367,12 @@
</span><span class="cx">  */
</span><span class="cx"> class WP_Widget_Meta extends WP_Widget {
</span><span class="cx"> 
</span><del>-       function __construct() {
</del><ins>+        public function __construct() {
</ins><span class="cx">           $widget_ops = array('classname' => 'widget_meta', 'description' => __( "Login, RSS, &amp; WordPress.org links.") );
</span><span class="cx">          parent::__construct('meta', __('Meta'), $widget_ops);
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function widget( $args, $instance ) {
</del><ins>+        public function widget( $args, $instance ) {
</ins><span class="cx"> 
</span><span class="cx">          /** This filter is documented in wp-includes/default-widgets.php */
</span><span class="cx">          $title = apply_filters( 'widget_title', empty($instance['title']) ? __( 'Meta' ) : $instance['title'], $instance, $this->id_base );
</span><span class="lines">@@ -408,14 +408,14 @@
</span><span class="cx">          echo $args['after_widget'];
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function update( $new_instance, $old_instance ) {
</del><ins>+        public function update( $new_instance, $old_instance ) {
</ins><span class="cx">           $instance = $old_instance;
</span><span class="cx">          $instance['title'] = strip_tags($new_instance['title']);
</span><span class="cx"> 
</span><span class="cx">          return $instance;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function form( $instance ) {
</del><ins>+        public function form( $instance ) {
</ins><span class="cx">           $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
</span><span class="cx">          $title = strip_tags($instance['title']);
</span><span class="cx"> ?>
</span><span class="lines">@@ -431,12 +431,12 @@
</span><span class="cx">  */
</span><span class="cx"> class WP_Widget_Calendar extends WP_Widget {
</span><span class="cx"> 
</span><del>-       function __construct() {
</del><ins>+        public function __construct() {
</ins><span class="cx">           $widget_ops = array('classname' => 'widget_calendar', 'description' => __( 'A calendar of your site&#8217;s Posts.') );
</span><span class="cx">          parent::__construct('calendar', __('Calendar'), $widget_ops);
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function widget( $args, $instance ) {
</del><ins>+        public function widget( $args, $instance ) {
</ins><span class="cx"> 
</span><span class="cx">          /** This filter is documented in wp-includes/default-widgets.php */
</span><span class="cx">          $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
</span><span class="lines">@@ -451,14 +451,14 @@
</span><span class="cx">          echo $args['after_widget'];
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function update( $new_instance, $old_instance ) {
</del><ins>+        public function update( $new_instance, $old_instance ) {
</ins><span class="cx">           $instance = $old_instance;
</span><span class="cx">          $instance['title'] = strip_tags($new_instance['title']);
</span><span class="cx"> 
</span><span class="cx">          return $instance;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function form( $instance ) {
</del><ins>+        public function form( $instance ) {
</ins><span class="cx">           $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
</span><span class="cx">          $title = strip_tags($instance['title']);
</span><span class="cx"> ?>
</span><span class="lines">@@ -475,13 +475,13 @@
</span><span class="cx">  */
</span><span class="cx"> class WP_Widget_Text extends WP_Widget {
</span><span class="cx"> 
</span><del>-       function __construct() {
</del><ins>+        public function __construct() {
</ins><span class="cx">           $widget_ops = array('classname' => 'widget_text', 'description' => __('Arbitrary text or HTML.'));
</span><span class="cx">          $control_ops = array('width' => 400, 'height' => 350);
</span><span class="cx">          parent::__construct('text', __('Text'), $widget_ops, $control_ops);
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function widget( $args, $instance ) {
</del><ins>+        public function widget( $args, $instance ) {
</ins><span class="cx"> 
</span><span class="cx">          /** This filter is documented in wp-includes/default-widgets.php */
</span><span class="cx">          $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
</span><span class="lines">@@ -504,7 +504,7 @@
</span><span class="cx">          echo $args['after_widget'];
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function update( $new_instance, $old_instance ) {
</del><ins>+        public function update( $new_instance, $old_instance ) {
</ins><span class="cx">           $instance = $old_instance;
</span><span class="cx">          $instance['title'] = strip_tags($new_instance['title']);
</span><span class="cx">          if ( current_user_can('unfiltered_html') )
</span><span class="lines">@@ -515,7 +515,7 @@
</span><span class="cx">          return $instance;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function form( $instance ) {
</del><ins>+        public function form( $instance ) {
</ins><span class="cx">           $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'text' => '' ) );
</span><span class="cx">          $title = strip_tags($instance['title']);
</span><span class="cx">          $text = esc_textarea($instance['text']);
</span><span class="lines">@@ -537,12 +537,12 @@
</span><span class="cx">  */
</span><span class="cx"> class WP_Widget_Categories extends WP_Widget {
</span><span class="cx"> 
</span><del>-       function __construct() {
</del><ins>+        public function __construct() {
</ins><span class="cx">           $widget_ops = array( 'classname' => 'widget_categories', 'description' => __( "A list or dropdown of categories." ) );
</span><span class="cx">          parent::__construct('categories', __('Categories'), $widget_ops);
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function widget( $args, $instance ) {
</del><ins>+        public function widget( $args, $instance ) {
</ins><span class="cx"> 
</span><span class="cx">          /** This filter is documented in wp-includes/default-widgets.php */
</span><span class="cx">          $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Categories' ) : $instance['title'], $instance, $this->id_base );
</span><span class="lines">@@ -608,7 +608,7 @@
</span><span class="cx">          echo $args['after_widget'];
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function update( $new_instance, $old_instance ) {
</del><ins>+        public function update( $new_instance, $old_instance ) {
</ins><span class="cx">           $instance = $old_instance;
</span><span class="cx">          $instance['title'] = strip_tags($new_instance['title']);
</span><span class="cx">          $instance['count'] = !empty($new_instance['count']) ? 1 : 0;
</span><span class="lines">@@ -618,7 +618,7 @@
</span><span class="cx">          return $instance;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function form( $instance ) {
</del><ins>+        public function form( $instance ) {
</ins><span class="cx">           //Defaults
</span><span class="cx">          $instance = wp_parse_args( (array) $instance, array( 'title' => '') );
</span><span class="cx">          $title = esc_attr( $instance['title'] );
</span><span class="lines">@@ -649,7 +649,7 @@
</span><span class="cx">  */
</span><span class="cx"> class WP_Widget_Recent_Posts extends WP_Widget {
</span><span class="cx"> 
</span><del>-       function __construct() {
</del><ins>+        public function __construct() {
</ins><span class="cx">           $widget_ops = array('classname' => 'widget_recent_entries', 'description' => __( "Your site&#8217;s most recent Posts.") );
</span><span class="cx">          parent::__construct('recent-posts', __('Recent Posts'), $widget_ops);
</span><span class="cx">          $this->alt_option_name = 'widget_recent_entries';
</span><span class="lines">@@ -659,7 +659,7 @@
</span><span class="cx">          add_action( 'switch_theme', array($this, 'flush_widget_cache') );
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function widget($args, $instance) {
</del><ins>+        public function widget($args, $instance) {
</ins><span class="cx">           $cache = array();
</span><span class="cx">          if ( ! $this->is_preview() ) {
</span><span class="cx">                  $cache = wp_cache_get( 'widget_recent_posts', 'widget' );
</span><span class="lines">@@ -737,7 +737,7 @@
</span><span class="cx">          }
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function update( $new_instance, $old_instance ) {
</del><ins>+        public function update( $new_instance, $old_instance ) {
</ins><span class="cx">           $instance = $old_instance;
</span><span class="cx">          $instance['title'] = strip_tags($new_instance['title']);
</span><span class="cx">          $instance['number'] = (int) $new_instance['number'];
</span><span class="lines">@@ -751,11 +751,11 @@
</span><span class="cx">          return $instance;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function flush_widget_cache() {
</del><ins>+        public function flush_widget_cache() {
</ins><span class="cx">           wp_cache_delete('widget_recent_posts', 'widget');
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function form( $instance ) {
</del><ins>+        public function form( $instance ) {
</ins><span class="cx">           $title     = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : '';
</span><span class="cx">          $number    = isset( $instance['number'] ) ? absint( $instance['number'] ) : 5;
</span><span class="cx">          $show_date = isset( $instance['show_date'] ) ? (bool) $instance['show_date'] : false;
</span><span class="lines">@@ -779,7 +779,7 @@
</span><span class="cx">  */
</span><span class="cx"> class WP_Widget_Recent_Comments extends WP_Widget {
</span><span class="cx"> 
</span><del>-       function __construct() {
</del><ins>+        public function __construct() {
</ins><span class="cx">           $widget_ops = array('classname' => 'widget_recent_comments', 'description' => __( 'Your site&#8217;s most recent comments.' ) );
</span><span class="cx">          parent::__construct('recent-comments', __('Recent Comments'), $widget_ops);
</span><span class="cx">          $this->alt_option_name = 'widget_recent_comments';
</span><span class="lines">@@ -792,7 +792,7 @@
</span><span class="cx">          add_action( 'transition_comment_status', array($this, 'flush_widget_cache') );
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function recent_comments_style() {
</del><ins>+        public function recent_comments_style() {
</ins><span class="cx"> 
</span><span class="cx">          /**
</span><span class="cx">           * Filter the Recent Comments default widget styles.
</span><span class="lines">@@ -810,11 +810,11 @@
</span><span class="cx"> <?php
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function flush_widget_cache() {
</del><ins>+        public function flush_widget_cache() {
</ins><span class="cx">           wp_cache_delete('widget_recent_comments', 'widget');
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function widget( $args, $instance ) {
</del><ins>+        public function widget( $args, $instance ) {
</ins><span class="cx">           global $comments, $comment;
</span><span class="cx"> 
</span><span class="cx">          $cache = array();
</span><span class="lines">@@ -885,7 +885,7 @@
</span><span class="cx">          }
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function update( $new_instance, $old_instance ) {
</del><ins>+        public function update( $new_instance, $old_instance ) {
</ins><span class="cx">           $instance = $old_instance;
</span><span class="cx">          $instance['title'] = strip_tags($new_instance['title']);
</span><span class="cx">          $instance['number'] = absint( $new_instance['number'] );
</span><span class="lines">@@ -898,7 +898,7 @@
</span><span class="cx">          return $instance;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function form( $instance ) {
</del><ins>+        public function form( $instance ) {
</ins><span class="cx">           $title  = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : '';
</span><span class="cx">          $number = isset( $instance['number'] ) ? absint( $instance['number'] ) : 5;
</span><span class="cx"> ?>
</span><span class="lines">@@ -918,13 +918,13 @@
</span><span class="cx">  */
</span><span class="cx"> class WP_Widget_RSS extends WP_Widget {
</span><span class="cx"> 
</span><del>-       function __construct() {
</del><ins>+        public function __construct() {
</ins><span class="cx">           $widget_ops = array( 'description' => __('Entries from any RSS or Atom feed.') );
</span><span class="cx">          $control_ops = array( 'width' => 400, 'height' => 200 );
</span><span class="cx">          parent::__construct( 'rss', __('RSS'), $widget_ops, $control_ops );
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function widget($args, $instance) {
</del><ins>+        public function widget($args, $instance) {
</ins><span class="cx"> 
</span><span class="cx">          if ( isset($instance['error']) && $instance['error'] )
</span><span class="cx">                  return;
</span><span class="lines">@@ -977,12 +977,12 @@
</span><span class="cx">          unset($rss);
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function update($new_instance, $old_instance) {
</del><ins>+        public function update($new_instance, $old_instance) {
</ins><span class="cx">           $testurl = ( isset( $new_instance['url'] ) && ( !isset( $old_instance['url'] ) || ( $new_instance['url'] != $old_instance['url'] ) ) );
</span><span class="cx">          return wp_widget_rss_process( $new_instance, $testurl );
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function form($instance) {
</del><ins>+        public function form($instance) {
</ins><span class="cx"> 
</span><span class="cx">          if ( empty($instance) )
</span><span class="cx">                  $instance = array( 'title' => '', 'url' => '', 'items' => 10, 'error' => false, 'show_summary' => 0, 'show_author' => 0, 'show_date' => 0 );
</span><span class="lines">@@ -1212,12 +1212,12 @@
</span><span class="cx">  */
</span><span class="cx"> class WP_Widget_Tag_Cloud extends WP_Widget {
</span><span class="cx"> 
</span><del>-       function __construct() {
</del><ins>+        public function __construct() {
</ins><span class="cx">           $widget_ops = array( 'description' => __( "A cloud of your most used tags.") );
</span><span class="cx">          parent::__construct('tag_cloud', __('Tag Cloud'), $widget_ops);
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function widget( $args, $instance ) {
</del><ins>+        public function widget( $args, $instance ) {
</ins><span class="cx">           $current_taxonomy = $this->_get_current_taxonomy($instance);
</span><span class="cx">          if ( !empty($instance['title']) ) {
</span><span class="cx">                  $title = $instance['title'];
</span><span class="lines">@@ -1257,13 +1257,13 @@
</span><span class="cx">          echo $args['after_widget'];
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function update( $new_instance, $old_instance ) {
</del><ins>+        public function update( $new_instance, $old_instance ) {
</ins><span class="cx">           $instance['title'] = strip_tags(stripslashes($new_instance['title']));
</span><span class="cx">          $instance['taxonomy'] = stripslashes($new_instance['taxonomy']);
</span><span class="cx">          return $instance;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function form( $instance ) {
</del><ins>+        public function form( $instance ) {
</ins><span class="cx">           $current_taxonomy = $this->_get_current_taxonomy($instance);
</span><span class="cx"> ?>
</span><span class="cx">  <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:') ?></label>
</span><span class="lines">@@ -1280,7 +1280,7 @@
</span><span class="cx">  </select></p><?php
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function _get_current_taxonomy($instance) {
</del><ins>+        public function _get_current_taxonomy($instance) {
</ins><span class="cx">           if ( !empty($instance['taxonomy']) && taxonomy_exists($instance['taxonomy']) )
</span><span class="cx">                  return $instance['taxonomy'];
</span><span class="cx"> 
</span><span class="lines">@@ -1295,12 +1295,12 @@
</span><span class="cx">  */
</span><span class="cx">  class WP_Nav_Menu_Widget extends WP_Widget {
</span><span class="cx"> 
</span><del>-       function __construct() {
</del><ins>+        public function __construct() {
</ins><span class="cx">           $widget_ops = array( 'description' => __('Add a custom menu to your sidebar.') );
</span><span class="cx">          parent::__construct( 'nav_menu', __('Custom Menu'), $widget_ops );
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function widget($args, $instance) {
</del><ins>+        public function widget($args, $instance) {
</ins><span class="cx">           // Get menu
</span><span class="cx">          $nav_menu = ! empty( $instance['nav_menu'] ) ? wp_get_nav_menu_object( $instance['nav_menu'] ) : false;
</span><span class="cx"> 
</span><span class="lines">@@ -1320,7 +1320,7 @@
</span><span class="cx">          echo $args['after_widget'];
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function update( $new_instance, $old_instance ) {
</del><ins>+        public function update( $new_instance, $old_instance ) {
</ins><span class="cx">           $instance = array();
</span><span class="cx">          if ( ! empty( $new_instance['title'] ) ) {
</span><span class="cx">                  $instance['title'] = strip_tags( stripslashes($new_instance['title']) );
</span><span class="lines">@@ -1331,7 +1331,7 @@
</span><span class="cx">          return $instance;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       function form( $instance ) {
</del><ins>+        public function form( $instance ) {
</ins><span class="cx">           $title = isset( $instance['title'] ) ? $instance['title'] : '';
</span><span class="cx">          $nav_menu = isset( $instance['nav_menu'] ) ? $instance['nav_menu'] : '';
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>