<!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>[13770] trunk: Remove redundant isset() and empty() checks.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13770">13770</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-03-19 21:29:21 +0000 (Fri, 19 Mar 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove redundant isset() and empty() checks.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmineditcommentsphp">trunk/wp-admin/edit-comments.php</a></li>
<li><a href="#trunkwpadmineditlinkcategoriesphp">trunk/wp-admin/edit-link-categories.php</a></li>
<li><a href="#trunkwpadminedittagsphp">trunk/wp-admin/edit-tags.php</a></li>
<li><a href="#trunkwpadmineditphp">trunk/wp-admin/edit.php</a></li>
<li><a href="#trunkwpadminincludesclasswpfilesystemftpextphp">trunk/wp-admin/includes/class-wp-filesystem-ftpext.php</a></li>
<li><a href="#trunkwpadminincludesclasswpfilesystemftpsocketsphp">trunk/wp-admin/includes/class-wp-filesystem-ftpsockets.php</a></li>
<li><a href="#trunkwpadminincludesclasswpfilesystemssh2php">trunk/wp-admin/includes/class-wp-filesystem-ssh2.php</a></li>
<li><a href="#trunkwpadminincludespluginphp">trunk/wp-admin/includes/plugin.php</a></li>
<li><a href="#trunkwpadmininstallphp">trunk/wp-admin/install.php</a></li>
<li><a href="#trunkwpadminlinkmanagerphp">trunk/wp-admin/link-manager.php</a></li>
<li><a href="#trunkwpadminmenuheaderphp">trunk/wp-admin/menu-header.php</a></li>
<li><a href="#trunkwpadminuploadphp">trunk/wp-admin/upload.php</a></li>
<li><a href="#trunkwpcontentthemesdefaultarchivephp">trunk/wp-content/themes/default/archive.php</a></li>
<li><a href="#trunkwpcontentthemesdefaultsidebarphp">trunk/wp-content/themes/default/sidebar.php</a></li>
<li><a href="#trunkwpincludesksesphp">trunk/wp-includes/kses.php</a></li>
<li><a href="#trunkwpincludesloadphp">trunk/wp-includes/load.php</a></li>
<li><a href="#trunkwpincludesposttemplatephp">trunk/wp-includes/post-template.php</a></li>
<li><a href="#trunkwpincludespostphp">trunk/wp-includes/post.php</a></li>
<li><a href="#trunkwpincludesqueryphp">trunk/wp-includes/query.php</a></li>
<li><a href="#trunkwpincludeswidgetsphp">trunk/wp-includes/widgets.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmineditcommentsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-comments.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-comments.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-admin/edit-comments.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -95,7 +95,7 @@
</span><span class="cx"> 
</span><span class="cx">         wp_redirect( $redirect_to );
</span><span class="cx">         exit;
</span><del>-} elseif ( isset($_GET['_wp_http_referer']) &amp;&amp; ! empty($_GET['_wp_http_referer']) ) {
</del><ins>+} elseif ( ! empty($_GET['_wp_http_referer']) ) {
</ins><span class="cx">          wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
</span><span class="cx">          exit;
</span><span class="cx"> }
</span><span class="lines">@@ -107,7 +107,7 @@
</span><span class="cx"> 
</span><span class="cx"> require_once('admin-header.php');
</span><span class="cx"> 
</span><del>-$mode = ( ! isset($_GET['mode']) || empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']);
</del><ins>+$mode = ( empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']);
</ins><span class="cx"> 
</span><span class="cx"> $comment_status = isset($_REQUEST['comment_status']) ? $_REQUEST['comment_status'] : 'all';
</span><span class="cx"> if ( !in_array($comment_status, array('all', 'moderated', 'approved', 'spam', 'trash')) )
</span></span></pre></div>
<a id="trunkwpadmineditlinkcategoriesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-link-categories.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-link-categories.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-admin/edit-link-categories.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx">                 wp_redirect($location);
</span><span class="cx">                 exit();
</span><span class="cx">         }
</span><del>-} elseif ( isset($_GET['_wp_http_referer']) &amp;&amp; ! empty($_GET['_wp_http_referer']) ) {
</del><ins>+} elseif ( ! empty($_GET['_wp_http_referer']) ) {
</ins><span class="cx">          wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
</span><span class="cx">          exit;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpadminedittagsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-tags.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-tags.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-admin/edit-tags.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -155,7 +155,7 @@
</span><span class="cx"> 
</span><span class="cx"> default:
</span><span class="cx"> 
</span><del>-if ( isset($_GET['_wp_http_referer']) &amp;&amp; ! empty($_GET['_wp_http_referer']) ) {
</del><ins>+if ( ! empty($_GET['_wp_http_referer']) ) {
</ins><span class="cx">          wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
</span><span class="cx">          exit;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpadmineditphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-admin/edit.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -132,7 +132,7 @@
</span><span class="cx"> 
</span><span class="cx">         wp_redirect($sendback);
</span><span class="cx">         exit();
</span><del>-} elseif ( isset($_GET['_wp_http_referer']) &amp;&amp; ! empty($_GET['_wp_http_referer']) ) {
</del><ins>+} elseif ( ! empty($_GET['_wp_http_referer']) ) {
</ins><span class="cx">          wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
</span><span class="cx">          exit;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpadminincludesclasswpfilesystemftpextphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/class-wp-filesystem-ftpext.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-filesystem-ftpext.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-admin/includes/class-wp-filesystem-ftpext.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx">                 else
</span><span class="cx">                         $this-&gt;options['hostname'] = $opt['hostname'];
</span><span class="cx"> 
</span><del>-                if ( isset($opt['base']) &amp;&amp; ! empty($opt['base']) )
</del><ins>+                if ( ! empty($opt['base']) )
</ins><span class="cx">                         $this-&gt;wp_base = $opt['base'];
</span><span class="cx"> 
</span><span class="cx">                 // Check if the options provided are OK.
</span></span></pre></div>
<a id="trunkwpadminincludesclasswpfilesystemftpsocketsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/class-wp-filesystem-ftpsockets.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-filesystem-ftpsockets.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-admin/includes/class-wp-filesystem-ftpsockets.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -39,7 +39,7 @@
</span><span class="cx">                 else
</span><span class="cx">                         $this-&gt;options['hostname'] = $opt['hostname'];
</span><span class="cx"> 
</span><del>-                if ( isset($opt['base']) &amp;&amp; ! empty($opt['base']) )
</del><ins>+                if ( ! empty($opt['base']) )
</ins><span class="cx">                         $this-&gt;wp_base = $opt['base'];
</span><span class="cx"> 
</span><span class="cx">                 // Check if the options provided are OK.
</span></span></pre></div>
<a id="trunkwpadminincludesclasswpfilesystemssh2php"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/class-wp-filesystem-ssh2.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-filesystem-ssh2.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-admin/includes/class-wp-filesystem-ssh2.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -73,7 +73,7 @@
</span><span class="cx">                 else
</span><span class="cx">                         $this-&gt;options['hostname'] = $opt['hostname'];
</span><span class="cx"> 
</span><del>-                if ( isset($opt['base']) &amp;&amp; ! empty($opt['base']) )
</del><ins>+                if ( ! empty($opt['base']) )
</ins><span class="cx">                         $this-&gt;wp_base = $opt['base'];
</span><span class="cx"> 
</span><span class="cx">                 // Check if the options provided are OK.
</span></span></pre></div>
<a id="trunkwpadminincludespluginphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/plugin.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/plugin.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-admin/includes/plugin.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -1243,9 +1243,8 @@
</span><span class="cx">         global $pagenow;
</span><span class="cx">         global $plugin_page;
</span><span class="cx"> 
</span><del>-        if ( isset( $title ) &amp;&amp; !empty ( $title ) ) {
</del><ins>+        if ( ! empty ( $title ) )
</ins><span class="cx">                 return $title;
</span><del>-        }
</del><span class="cx"> 
</span><span class="cx">         $hook = get_plugin_page_hook( $plugin_page, $pagenow );
</span><span class="cx"> 
</span><span class="lines">@@ -1290,7 +1289,7 @@
</span><span class="cx">                                 }
</span><span class="cx">                         }
</span><span class="cx">                 }
</span><del>-                if ( !isset($title) || empty ( $title ) ) {
</del><ins>+                if ( empty ( $title ) ) {
</ins><span class="cx">                         foreach ( $menu as $menu_array ) {
</span><span class="cx">                                 if ( isset( $plugin_page ) &amp;&amp;
</span><span class="cx">                                         ($plugin_page == $menu_array[2] ) &amp;&amp;
</span></span></pre></div>
<a id="trunkwpadmininstallphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/install.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/install.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-admin/install.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -79,7 +79,7 @@
</span><span class="cx"> 
</span><span class="cx">         // Ensure that Blogs appear in search engines by default
</span><span class="cx">         $blog_public = 1;
</span><del>-        if ( isset( $_POST ) &amp;&amp; ! empty( $_POST ) )
</del><ins>+        if ( ! empty( $_POST ) )
</ins><span class="cx">                 $blog_public = isset( $_POST['blog_public'] );
</span><span class="cx"> 
</span><span class="cx">         $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : '';
</span></span></pre></div>
<a id="trunkwpadminlinkmanagerphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/link-manager.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/link-manager.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-admin/link-manager.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -28,7 +28,7 @@
</span><span class="cx">                 wp_safe_redirect( wp_get_referer() );
</span><span class="cx">                 exit;
</span><span class="cx">         }
</span><del>-} elseif ( isset($_GET['_wp_http_referer']) &amp;&amp; ! empty($_GET['_wp_http_referer']) ) {
</del><ins>+} elseif ( ! empty($_GET['_wp_http_referer']) ) {
</ins><span class="cx">          wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
</span><span class="cx">          exit;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpadminmenuheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/menu-header.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/menu-header.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-admin/menu-header.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -54,14 +54,14 @@
</span><span class="cx">                                 $class[] = 'current';
</span><span class="cx">                 }
</span><span class="cx"> 
</span><del>-                if ( isset($item[4]) &amp;&amp; ! empty($item[4]) )
</del><ins>+                if ( ! empty($item[4]) )
</ins><span class="cx">                         $class[] = $item[4];
</span><span class="cx"> 
</span><span class="cx">                 $class = $class ? ' class=&quot;' . join( ' ', $class ) . '&quot;' : '';
</span><span class="cx">                 $tabindex = ' tabindex=&quot;1&quot;';
</span><del>-                $id = isset($item[5]) &amp;&amp; ! empty($item[5]) ? ' id=&quot;' . preg_replace( '|[^a-zA-Z0-9_:.]|', '-', $item[5] ) . '&quot;' : '';
</del><ins>+                $id = ! empty($item[5]) ? ' id=&quot;' . preg_replace( '|[^a-zA-Z0-9_:.]|', '-', $item[5] ) . '&quot;' : '';
</ins><span class="cx">                 $img = '';
</span><del>-                if ( isset($item[6]) &amp;&amp; ! empty($item[6]) ) {
</del><ins>+                if ( ! empty($item[6]) ) {
</ins><span class="cx">                         if ( 'div' === $item[6] )
</span><span class="cx">                                 $img = '&lt;br /&gt;';
</span><span class="cx">                         else
</span></span></pre></div>
<a id="trunkwpadminuploadphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/upload.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/upload.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-admin/upload.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -117,7 +117,7 @@
</span><span class="cx"> 
</span><span class="cx">         wp_redirect($location);
</span><span class="cx">         exit;
</span><del>-} elseif ( isset($_GET['_wp_http_referer']) &amp;&amp; ! empty($_GET['_wp_http_referer']) ) {
</del><ins>+} elseif ( ! empty($_GET['_wp_http_referer']) ) {
</ins><span class="cx">          wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
</span><span class="cx">          exit;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpcontentthemesdefaultarchivephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/default/archive.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/default/archive.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-content/themes/default/archive.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -24,7 +24,7 @@
</span><span class="cx">                 &lt;h2 class=&quot;pagetitle&quot;&gt;Archive for &lt;?php the_time('Y'); ?&gt;&lt;/h2&gt;
</span><span class="cx">           &lt;?php /* If this is an author archive */ } elseif (is_author()) { ?&gt;
</span><span class="cx">                 &lt;h2 class=&quot;pagetitle&quot;&gt;Author Archive&lt;/h2&gt;
</span><del>-           &lt;?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) &amp;&amp; !empty($_GET['paged'])) { ?&gt;
</del><ins>+           &lt;?php /* If this is a paged archive */ } elseif ( !empty($_GET['paged']) ) { ?&gt;
</ins><span class="cx">                 &lt;h2 class=&quot;pagetitle&quot;&gt;Blog Archives&lt;/h2&gt;
</span><span class="cx">            &lt;?php } ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpcontentthemesdefaultsidebarphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/default/sidebar.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/default/sidebar.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-content/themes/default/sidebar.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx">                         &lt;p&gt;You have searched the &lt;a href=&quot;&lt;?php bloginfo('url'); ?&gt;/&quot;&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt; blog archives
</span><span class="cx">                         for &lt;strong&gt;'&lt;?php the_search_query(); ?&gt;'&lt;/strong&gt;. If you are unable to find anything in these search results, you can try one of these links.&lt;/p&gt;
</span><span class="cx"> 
</span><del>-                        &lt;?php /* If this set is paginated */ } elseif (isset($_GET['paged']) &amp;&amp; !empty($_GET['paged'])) { ?&gt;
</del><ins>+                        &lt;?php /* If this set is paginated */ } elseif ( !empty($_GET['paged']) ) { ?&gt;
</ins><span class="cx">                         &lt;p&gt;You are currently browsing the &lt;a href=&quot;&lt;?php bloginfo('url'); ?&gt;/&quot;&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt; blog archives.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;?php } ?&gt;
</span></span></pre></div>
<a id="trunkwpincludesksesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/kses.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/kses.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-includes/kses.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -951,7 +951,7 @@
</span><span class="cx">         global $_kses_allowed_protocols;
</span><span class="cx"> 
</span><span class="cx">         if ( is_array($matches) ) {
</span><del>-                if ( ! isset($matches[1]) || empty($matches[1]) )
</del><ins>+                if ( empty($matches[1]) )
</ins><span class="cx">                         return '';
</span><span class="cx"> 
</span><span class="cx">                 $string = $matches[1];
</span></span></pre></div>
<a id="trunkwpincludesloadphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/load.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/load.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-includes/load.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx">                         }
</span><span class="cx"> 
</span><span class="cx">                         // Append the query string if it exists and isn't null
</span><del>-                        if ( isset( $_SERVER['QUERY_STRING'] ) &amp;&amp; !empty( $_SERVER['QUERY_STRING'] ) ) {
</del><ins>+                        if ( ! empty( $_SERVER['QUERY_STRING'] ) ) {
</ins><span class="cx">                                 $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
</span><span class="cx">                         }
</span><span class="cx">                 }
</span></span></pre></div>
<a id="trunkwpincludesposttemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/post-template.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/post-template.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-includes/post-template.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -828,7 +828,7 @@
</span><span class="cx">         $list_args = $args;
</span><span class="cx"> 
</span><span class="cx">         // Show Home in the menu
</span><del>-        if ( isset($args['show_home']) &amp;&amp; ! empty($args['show_home']) ) {
</del><ins>+        if ( ! empty($args['show_home']) ) {
</ins><span class="cx">                 if ( true === $args['show_home'] || '1' === $args['show_home'] || 1 === $args['show_home'] )
</span><span class="cx">                         $text = __('Home');
</span><span class="cx">                 else
</span></span></pre></div>
<a id="trunkwpincludespostphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/post.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/post.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-includes/post.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -2078,7 +2078,7 @@
</span><span class="cx"> 
</span><span class="cx">         // Create a valid post name.  Drafts and pending posts are allowed to have an empty
</span><span class="cx">         // post name.
</span><del>-        if ( !isset($post_name) || empty($post_name) ) {
</del><ins>+        if ( empty($post_name) ) {
</ins><span class="cx">                 if ( !in_array( $post_status, array( 'draft', 'pending', 'auto-draft' ) ) )
</span><span class="cx">                         $post_name = sanitize_title($post_title);
</span><span class="cx">                 else
</span></span></pre></div>
<a id="trunkwpincludesqueryphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/query.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/query.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-includes/query.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -2234,7 +2234,7 @@
</span><span class="cx">                 if ( ! empty($q['meta_key']) )
</span><span class="cx">                         $where .= $wpdb-&gt;prepare(&quot; AND $wpdb-&gt;postmeta.meta_key = %s &quot;, $q['meta_key']);
</span><span class="cx">                 if ( ! empty($q['meta_value']) ) {
</span><del>-                        if ( ! isset($q['meta_compare']) || empty($q['meta_compare']) || ! in_array($q['meta_compare'], array('=', '!=', '&gt;', '&gt;=', '&lt;', '&lt;=')) )
</del><ins>+                        if ( empty($q['meta_compare']) || ! in_array($q['meta_compare'], array('=', '!=', '&gt;', '&gt;=', '&lt;', '&lt;=')) )
</ins><span class="cx">                                 $q['meta_compare'] = '=';
</span><span class="cx"> 
</span><span class="cx">                         $where .= $wpdb-&gt;prepare(&quot;AND $wpdb-&gt;postmeta.meta_value {$q['meta_compare']} %s &quot;, $q['meta_value']);
</span></span></pre></div>
<a id="trunkwpincludeswidgetsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/widgets.php (13769 => 13770)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/widgets.php        2010-03-19 21:15:00 UTC (rev 13769)
+++ trunk/wp-includes/widgets.php        2010-03-19 21:29:21 UTC (rev 13770)
</span><span class="lines">@@ -966,7 +966,7 @@
</span><span class="cx"> function is_active_sidebar( $index ) {
</span><span class="cx">         $index = ( is_int($index) ) ? &quot;sidebar-$index&quot; : sanitize_title($index);
</span><span class="cx">         $sidebars_widgets = wp_get_sidebars_widgets();
</span><del>-        if ( isset($sidebars_widgets[$index]) &amp;&amp; !empty($sidebars_widgets[$index]) )
</del><ins>+        if ( !empty($sidebars_widgets[$index]) )
</ins><span class="cx">                 return true;
</span><span class="cx"> 
</span><span class="cx">         return false;
</span></span></pre>
</div>
</div>

</body>
</html>