<!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>[15278] trunk/wp-admin/includes/template.php:
  Coding standards clean-up of admin template.php.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/15278">15278</a></dd>
<dt>Author</dt> <dd>dd32</dd>
<dt>Date</dt> <dd>2010-06-19 05:32:01 +0000 (Sat, 19 Jun 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Coding standards clean-up of admin template.php. No logic changes. Removal of multiple spaces, addition of whitespace, addition of ;, s/&quot;/'/g where appropriate, case changes of constants, removal of $output = '..'; echo $output. </pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminincludestemplatephp">trunk/wp-admin/includes/template.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminincludestemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/template.php (15277 => 15278)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/template.php        2010-06-18 05:37:45 UTC (rev 15277)
+++ trunk/wp-admin/includes/template.php        2010-06-19 05:32:01 UTC (rev 15278)
</span><span class="lines">@@ -102,7 +102,7 @@
</span><span class="cx">                 $actions['edit'] = '&lt;a href=&quot;' . $edit_link . '&quot;&gt;' . __('Edit') . '&lt;/a&gt;';
</span><span class="cx">                 $actions['inline hide-if-no-js'] = '&lt;a href=&quot;#&quot; class=&quot;editinline&quot;&gt;' . __('Quick&amp;nbsp;Edit') . '&lt;/a&gt;';
</span><span class="cx">                 if ( $default_cat_id != $category-&gt;term_id )
</span><del>-                        $actions['delete'] = &quot;&lt;a class='delete:the-list:link-cat-$category-&gt;term_id submitdelete' href='&quot; . wp_nonce_url(&quot;link-category.php?action=delete&amp;amp;cat_ID=$category-&gt;term_id&quot;, 'delete-link-category_' . $category-&gt;term_id) . &quot;'&gt;&quot; . __('Delete') . &quot;&lt;/a&gt;&quot;;
</del><ins>+                        $actions['delete'] = &quot;&lt;a class='delete:the-list:link-cat-$category-&gt;term_id submitdelete' href='&quot; . wp_nonce_url(&quot;link-category.php?action=delete&amp;amp;cat_ID=$category-&gt;term_id&quot;, 'delete-link-category_' . $category-&gt;term_id) . &quot;'&gt;&quot; . __('Delete') . '&lt;/a&gt;';
</ins><span class="cx">                 $actions = apply_filters('link_cat_row_actions', $actions, $category);
</span><span class="cx">                 $action_count = count($actions);
</span><span class="cx">                 $i = 0;
</span><span class="lines">@@ -155,7 +155,7 @@
</span><span class="cx">                                 $output .= &quot;&lt;td $attributes&gt;$category-&gt;description&lt;/td&gt;&quot;;
</span><span class="cx">                                 break;
</span><span class="cx">                         case 'slug':
</span><del>-                                $output .= &quot;&lt;td $attributes&gt;&quot; . apply_filters('editable_slug', $category-&gt;slug) . &quot;&lt;/td&gt;&quot;;
</del><ins>+                                $output .= &quot;&lt;td $attributes&gt;&quot; . apply_filters('editable_slug', $category-&gt;slug) . '&lt;/td&gt;';
</ins><span class="cx">                                 break;
</span><span class="cx">                         case 'links':
</span><span class="cx">                                 $attributes = 'class=&quot;links column-links num&quot;' . $style;
</span><span class="lines">@@ -233,7 +233,7 @@
</span><span class="cx">                         'popular_cats' =&gt; $popular_cats,
</span><span class="cx">                         'walker' =&gt; $walker,
</span><span class="cx">                         'checked_ontop' =&gt; $checked_ontop
</span><del>-  ));
</del><ins>+        ));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="lines">@@ -288,7 +288,7 @@
</span><span class="cx">                 $checked_categories = array();
</span><span class="cx">                 $keys = array_keys( $categories );
</span><span class="cx"> 
</span><del>-                foreach( $keys as $k ) {
</del><ins>+                foreach ( $keys as $k ) {
</ins><span class="cx">                         if ( in_array( $categories[$k]-&gt;term_id, $args['selected_cats'] ) ) {
</span><span class="cx">                                 $checked_categories[] = $categories[$k];
</span><span class="cx">                                 unset( $categories[$k] );
</span><span class="lines">@@ -340,7 +340,7 @@
</span><span class="cx"> 
</span><span class="cx">                 &lt;li id=&quot;&lt;?php echo $id; ?&gt;&quot; class=&quot;popular-category&quot;&gt;
</span><span class="cx">                         &lt;label class=&quot;selectit&quot;&gt;
</span><del>-                        &lt;input id=&quot;in-&lt;?php echo $id; ?&gt;&quot; type=&quot;checkbox&quot; &lt;?php echo $checked; ?&gt; value=&quot;&lt;?php echo (int) $term-&gt;term_id; ?&gt;&quot; &lt;?php echo $disabled ?&gt;/&gt;
</del><ins>+                        &lt;input id=&quot;in-&lt;?php echo $id; ?&gt;&quot; type=&quot;checkbox&quot; &lt;?php echo $checked; ?&gt; value=&quot;&lt;?php echo (int) $term-&gt;term_id; ?&gt;&quot; &lt;?php echo $disabled; ?&gt;/&gt;
</ins><span class="cx">                                 &lt;?php echo esc_html( apply_filters( 'the_category', $term-&gt;name ) ); ?&gt;
</span><span class="cx">                         &lt;/label&gt;
</span><span class="cx">                 &lt;/li&gt;
</span><span class="lines">@@ -449,7 +449,7 @@
</span><span class="cx">                                                 $actions['inline hide-if-no-js'] = '&lt;a href=&quot;#&quot; class=&quot;editinline&quot;&gt;' . __('Quick&amp;nbsp;Edit') . '&lt;/a&gt;';
</span><span class="cx">                                         }
</span><span class="cx">                                         if ( current_user_can($tax-&gt;cap-&gt;delete_terms) &amp;&amp; $tag-&gt;term_id != $default_term )
</span><del>-                                                $actions['delete'] = &quot;&lt;a class='delete-tag' href='&quot; . wp_nonce_url(&quot;edit-tags.php?action=delete&amp;amp;taxonomy=$taxonomy&amp;amp;tag_ID=$tag-&gt;term_id&quot;, 'delete-tag_' . $tag-&gt;term_id) . &quot;'&gt;&quot; . __('Delete') . &quot;&lt;/a&gt;&quot;;
</del><ins>+                                                $actions['delete'] = &quot;&lt;a class='delete-tag' href='&quot; . wp_nonce_url(&quot;edit-tags.php?action=delete&amp;amp;taxonomy=$taxonomy&amp;amp;tag_ID=$tag-&gt;term_id&quot;, 'delete-tag_' . $tag-&gt;term_id) . &quot;'&gt;&quot; . __('Delete') . '&lt;/a&gt;';
</ins><span class="cx"> 
</span><span class="cx">                                         $actions = apply_filters('tag_row_actions', $actions, $tag);
</span><span class="cx">                                         $actions = apply_filters(&quot;${taxonomy}_row_actions&quot;, $actions, $tag);
</span><span class="lines">@@ -472,7 +472,7 @@
</span><span class="cx">                                         $out .= &quot;&lt;td $attributes&gt;$tag-&gt;description&lt;/td&gt;&quot;;
</span><span class="cx">                                         break;
</span><span class="cx">                                 case 'slug':
</span><del>-                                        $out .= &quot;&lt;td $attributes&gt;&quot; . apply_filters('editable_slug', $tag-&gt;slug) . &quot;&lt;/td&gt;&quot;;
</del><ins>+                                        $out .= &quot;&lt;td $attributes&gt;&quot; . apply_filters('editable_slug', $tag-&gt;slug) . '&lt;/td&gt;';
</ins><span class="cx">                                         break;
</span><span class="cx">                                 case 'posts':
</span><span class="cx">                                         $attributes = 'class=&quot;posts column-posts num&quot;' . $style;
</span><span class="lines">@@ -530,7 +530,7 @@
</span><span class="cx">                 $out .= _term_rows($taxonomy, $terms, $children, $page, $pagesize, $count);
</span><span class="cx">         } else {
</span><span class="cx">                 $terms = get_terms( $taxonomy, $args );
</span><del>-                foreach( $terms as $term )
</del><ins>+                foreach ( $terms as $term )
</ins><span class="cx">                         $out .= _tag_row( $term, 0, $taxonomy );
</span><span class="cx">                 $count = $pagesize; // Only displaying a single page.
</span><span class="cx">         }
</span><span class="lines">@@ -569,7 +569,7 @@
</span><span class="cx"> 
</span><span class="cx">                         $num_parents = count($my_parents);
</span><span class="cx">                         while ( $my_parent = array_pop($my_parents) ) {
</span><del>-                                $output .=  &quot;\t&quot; . _tag_row( $my_parent, $level - $num_parents, $taxonomy );
</del><ins>+                                $output .= &quot;\t&quot; . _tag_row( $my_parent, $level - $num_parents, $taxonomy );
</ins><span class="cx">                                 $num_parents--;
</span><span class="cx">                         }
</span><span class="cx">                 }
</span><span class="lines">@@ -803,11 +803,11 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><del>- * Register column headers for a particular screen.  The header names will be listed in the Screen Options.
</del><ins>+ * Register column headers for a particular screen. The header names will be listed in the Screen Options.
</ins><span class="cx">  *
</span><span class="cx">  * @since 2.7.0
</span><span class="cx">  *
</span><del>- * @param string $screen The handle for the screen to add help to.  This is usually the hook name returned by the add_*_page() functions.
</del><ins>+ * @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
</ins><span class="cx">  * @param array $columns An array of columns with column IDs as the keys and translated column names as the values
</span><span class="cx">  * @see get_column_headers(), print_column_headers(), get_hidden_columns()
</span><span class="cx">  */
</span><span class="lines">@@ -940,11 +940,10 @@
</span><span class="cx">                         $authors_dropdown .= '&lt;/label&gt;';
</span><span class="cx"> 
</span><span class="cx">                 endif; // authors
</span><del>-?&gt;
</del><ins>+                if ( !$bulk ) // On bulk views, this is used further down
+                        echo $authors_dropdown;
+        endif; // post_type_supports author
</ins><span class="cx"> 
</span><del>-&lt;?php if ( !$bulk ) echo $authors_dropdown;
-endif; // post_type_supports author
-
</del><span class="cx"> if ( !$bulk ) :
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -976,13 +975,13 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;?php foreach ( $hierarchical_taxonomies as $taxonomy ) : ?&gt;
</span><span class="cx"> 
</span><del>-                &lt;span class=&quot;title inline-edit-categories-label&quot;&gt;&lt;?php echo esc_html($taxonomy-&gt;labels-&gt;name) ?&gt;
</del><ins>+                &lt;span class=&quot;title inline-edit-categories-label&quot;&gt;&lt;?php echo esc_html($taxonomy-&gt;labels-&gt;name); ?&gt;
</ins><span class="cx">                         &lt;span class=&quot;catshow&quot;&gt;&lt;?php _e('[more]'); ?&gt;&lt;/span&gt;
</span><span class="cx">                         &lt;span class=&quot;cathide&quot; style=&quot;display:none;&quot;&gt;&lt;?php _e('[less]'); ?&gt;&lt;/span&gt;
</span><span class="cx">                 &lt;/span&gt;
</span><span class="cx">                 &lt;input type=&quot;hidden&quot; name=&quot;&lt;?php echo ( $taxonomy-&gt;name == 'category' ) ? 'post_category[]' : 'tax_input[' . esc_attr($taxonomy-&gt;name) . '][]'; ?&gt;&quot; value=&quot;0&quot; /&gt;
</span><span class="cx">                 &lt;ul class=&quot;cat-checklist &lt;?php echo esc_attr($taxonomy-&gt;name)?&gt;-checklist&quot;&gt;
</span><del>-                        &lt;?php wp_terms_checklist(null, array('taxonomy' =&gt; $taxonomy-&gt;name)) ?&gt;
</del><ins>+                        &lt;?php wp_terms_checklist(null, array('taxonomy' =&gt; $taxonomy-&gt;name)); ?&gt;
</ins><span class="cx">                 &lt;/ul&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php endforeach; //$hierarchical_taxonomies as $taxonomy ?&gt;
</span><span class="lines">@@ -1005,7 +1004,7 @@
</span><span class="cx"> &lt;?php
</span><span class="cx">         $dropdown_args = array('post_type' =&gt; $post_type_object-&gt;name, 'selected' =&gt; $post-&gt;post_parent, 'name' =&gt; 'post_parent', 'show_option_none' =&gt; __('Main Page (no parent)'), 'option_none_value' =&gt; 0, 'sort_column'=&gt; 'menu_order, post_title');
</span><span class="cx">         if ( $bulk )
</span><del>-                $dropdown_args['show_option_no_change'] =  __('&amp;mdash; No Change &amp;mdash;');
</del><ins>+                $dropdown_args['show_option_no_change'] = __('&amp;mdash; No Change &amp;mdash;');
</ins><span class="cx">         $dropdown_args = apply_filters('quick_edit_dropdown_pages_args', $dropdown_args);
</span><span class="cx">         wp_dropdown_pages($dropdown_args);
</span><span class="cx"> ?&gt;
</span><span class="lines">@@ -1016,7 +1015,7 @@
</span><span class="cx"> 
</span><span class="cx">                 &lt;label&gt;
</span><span class="cx">                         &lt;span class=&quot;title&quot;&gt;&lt;?php _e( 'Order' ); ?&gt;&lt;/span&gt;
</span><del>-                        &lt;span class=&quot;input-text-wrap&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;menu_order&quot; class=&quot;inline-edit-menu-order-input&quot; value=&quot;&lt;?php echo $post-&gt;menu_order ?&gt;&quot; /&gt;&lt;/span&gt;
</del><ins>+                        &lt;span class=&quot;input-text-wrap&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;menu_order&quot; class=&quot;inline-edit-menu-order-input&quot; value=&quot;&lt;?php echo $post-&gt;menu_order; ?&gt;&quot; /&gt;&lt;/span&gt;
</ins><span class="cx">                 &lt;/label&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php        endif; // !$bulk ?&gt;
</span><span class="lines">@@ -1028,7 +1027,7 @@
</span><span class="cx">                                 &lt;option value=&quot;-1&quot;&gt;&lt;?php _e('&amp;mdash; No Change &amp;mdash;'); ?&gt;&lt;/option&gt;
</span><span class="cx"> &lt;?php        endif; // $bulk ?&gt;
</span><span class="cx">                                 &lt;option value=&quot;default&quot;&gt;&lt;?php _e( 'Default Template' ); ?&gt;&lt;/option&gt;
</span><del>-                                &lt;?php page_template_dropdown() ?&gt;
</del><ins>+                                &lt;?php page_template_dropdown(); ?&gt;
</ins><span class="cx">                         &lt;/select&gt;
</span><span class="cx">                 &lt;/label&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -1041,13 +1040,13 @@
</span><span class="cx"> &lt;?php foreach ( $flat_taxonomies as $taxonomy ) : ?&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;label class=&quot;inline-edit-tags&quot;&gt;
</span><del>-                        &lt;span class=&quot;title&quot;&gt;&lt;?php echo esc_html($taxonomy-&gt;labels-&gt;name) ?&gt;&lt;/span&gt;
-                        &lt;textarea cols=&quot;22&quot; rows=&quot;1&quot; name=&quot;tax_input[&lt;?php echo esc_attr($taxonomy-&gt;name)?&gt;]&quot; class=&quot;tax_input_&lt;?php echo esc_attr($taxonomy-&gt;name)?&gt;&quot;&gt;&lt;/textarea&gt;
</del><ins>+                        &lt;span class=&quot;title&quot;&gt;&lt;?php echo esc_html($taxonomy-&gt;labels-&gt;name); ?&gt;&lt;/span&gt;
+                        &lt;textarea cols=&quot;22&quot; rows=&quot;1&quot; name=&quot;tax_input[&lt;?php echo esc_attr($taxonomy-&gt;name); ?&gt;]&quot; class=&quot;tax_input_&lt;?php echo esc_attr($taxonomy-&gt;name); ?&gt;&quot;&gt;&lt;/textarea&gt;
</ins><span class="cx">                 &lt;/label&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php endforeach; //$flat_taxonomies as $taxonomy ?&gt;
</span><span class="cx"> 
</span><del>-&lt;?php endif; // count($flat_taxonomies) &amp;&amp; !$bulk  ?&gt;
</del><ins>+&lt;?php endif; // count($flat_taxonomies) &amp;&amp; !$bulk ?&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;?php if ( post_type_supports( $screen-&gt;post_type, 'comments' ) || post_type_supports( $screen-&gt;post_type, 'trackbacks' ) ) :
</span><span class="cx">         if ( $bulk ) : ?&gt;
</span><span class="lines">@@ -1104,7 +1103,7 @@
</span><span class="cx">                                         &lt;option value=&quot;publish&quot;&gt;&lt;?php _e( 'Published' ); ?&gt;&lt;/option&gt;
</span><span class="cx">                                         &lt;option value=&quot;future&quot;&gt;&lt;?php _e( 'Scheduled' ); ?&gt;&lt;/option&gt;
</span><span class="cx"> &lt;?php if ( $bulk ) : ?&gt;
</span><del>-                                        &lt;option value=&quot;private&quot;&gt;&lt;?php _e('Private') ?&gt;&lt;/option&gt;
</del><ins>+                                        &lt;option value=&quot;private&quot;&gt;&lt;?php _e('Private'); ?&gt;&lt;/option&gt;
</ins><span class="cx"> &lt;?php endif; // $bulk ?&gt;
</span><span class="cx">                                 &lt;?php endif; ?&gt;
</span><span class="cx">                                         &lt;option value=&quot;pending&quot;&gt;&lt;?php _e( 'Pending Review' ); ?&gt;&lt;/option&gt;
</span><span class="lines">@@ -1342,7 +1341,7 @@
</span><span class="cx">                 case 'title':
</span><span class="cx">                         $attributes = 'class=&quot;post-title column-title&quot;' . $style;
</span><span class="cx">                 ?&gt;
</span><del>-                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;strong&gt;&lt;?php if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID) &amp;&amp; $post-&gt;post_status != 'trash' ) { ?&gt;&lt;a class=&quot;row-title&quot; href=&quot;&lt;?php echo $edit_link; ?&gt;&quot; title=&quot;&lt;?php echo esc_attr(sprintf(__('Edit &amp;#8220;%s&amp;#8221;'), $title)); ?&gt;&quot;&gt;&lt;?php echo $title ?&gt;&lt;/a&gt;&lt;?php } else { echo $title; }; _post_states($post); ?&gt;&lt;/strong&gt;
</del><ins>+                &lt;td &lt;?php echo $attributesl ?&gt;&gt;&lt;strong&gt;&lt;?php if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID) &amp;&amp; $post-&gt;post_status != 'trash' ) { ?&gt;&lt;a class=&quot;row-title&quot; href=&quot;&lt;?php echo $edit_link; ?&gt;&quot; title=&quot;&lt;?php echo esc_attr(sprintf(__('Edit &amp;#8220;%s&amp;#8221;'), $title)); ?&gt;&quot;&gt;&lt;?php echo $titlel ?&gt;&lt;/a&gt;&lt;?php } else { echo $title; }; _post_states($post); ?&gt;&lt;/strong&gt;
</ins><span class="cx">                 &lt;?php
</span><span class="cx">                         if ( 'excerpt' == $mode )
</span><span class="cx">                                 the_excerpt();
</span><span class="lines">@@ -1354,11 +1353,11 @@
</span><span class="cx">                         }
</span><span class="cx">                         if ( current_user_can($post_type_object-&gt;cap-&gt;delete_post, $post-&gt;ID) ) {
</span><span class="cx">                                 if ( 'trash' == $post-&gt;post_status )
</span><del>-                                        $actions['untrash'] = &quot;&lt;a title='&quot; . esc_attr(__('Restore this item from the Trash')) . &quot;' href='&quot; . wp_nonce_url( admin_url( sprintf($post_type_object-&gt;_edit_link . '&amp;amp;action=untrash', $post-&gt;ID) ), 'untrash-' . $post-&gt;post_type . '_' . $post-&gt;ID ) . &quot;'&gt;&quot; . __('Restore') . &quot;&lt;/a&gt;&quot;;
</del><ins>+                                        $actions['untrash'] = &quot;&lt;a title='&quot; . esc_attr(__('Restore this item from the Trash')) . &quot;' href='&quot; . wp_nonce_url( admin_url( sprintf($post_type_object-&gt;_edit_link . '&amp;amp;action=untrash', $post-&gt;ID) ), 'untrash-' . $post-&gt;post_type . '_' . $post-&gt;ID ) . &quot;'&gt;&quot; . __('Restore') . '&lt;/a&gt;';
</ins><span class="cx">                                 elseif ( EMPTY_TRASH_DAYS )
</span><del>-                                        $actions['trash'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr(__('Move this item to the Trash')) . &quot;' href='&quot; . get_delete_post_link($post-&gt;ID) . &quot;'&gt;&quot; . __('Trash') . &quot;&lt;/a&gt;&quot;;
</del><ins>+                                        $actions['trash'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr(__('Move this item to the Trash')) . &quot;' href='&quot; . get_delete_post_link($post-&gt;ID) . &quot;'&gt;&quot; . __('Trash') . '&lt;/a&gt;';
</ins><span class="cx">                                 if ( 'trash' == $post-&gt;post_status || !EMPTY_TRASH_DAYS )
</span><del>-                                        $actions['delete'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr(__('Delete this item permanently')) . &quot;' href='&quot; . get_delete_post_link($post-&gt;ID, '', true) . &quot;'&gt;&quot; . __('Delete Permanently') . &quot;&lt;/a&gt;&quot;;
</del><ins>+                                        $actions['delete'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr(__('Delete this item permanently')) . &quot;' href='&quot; . get_delete_post_link($post-&gt;ID, '', true) . &quot;'&gt;&quot; . __('Delete Permanently') . '&lt;/a&gt;';
</ins><span class="cx">                         }
</span><span class="cx">                         if ( in_array($post-&gt;post_status, array('pending', 'draft')) ) {
</span><span class="cx">                                 if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID) )
</span><span class="lines">@@ -1385,12 +1384,12 @@
</span><span class="cx"> 
</span><span class="cx">                 case 'categories':
</span><span class="cx">                 ?&gt;
</span><del>-                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php
</del><ins>+                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;?php
</ins><span class="cx">                         $categories = get_the_category();
</span><span class="cx">                         if ( !empty( $categories ) ) {
</span><span class="cx">                                 $out = array();
</span><span class="cx">                                 foreach ( $categories as $c )
</span><del>-                                        $out[] = &quot;&lt;a href='edit.php?category_name=$c-&gt;slug'&gt; &quot; . esc_html(sanitize_term_field('name', $c-&gt;name, $c-&gt;term_id, 'category', 'display')) . &quot;&lt;/a&gt;&quot;;
</del><ins>+                                        $out[] = &quot;&lt;a href='edit.php?category_name=$c-&gt;slug'&gt; &quot; . esc_html(sanitize_term_field('name', $c-&gt;name, $c-&gt;term_id, 'category', 'display')) . '&lt;/a&gt;';
</ins><span class="cx">                                         echo join( ', ', $out );
</span><span class="cx">                         } else {
</span><span class="cx">                                 _e('Uncategorized');
</span><span class="lines">@@ -1401,12 +1400,12 @@
</span><span class="cx"> 
</span><span class="cx">                 case 'tags':
</span><span class="cx">                 ?&gt;
</span><del>-                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php
</del><ins>+                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;?php
</ins><span class="cx">                         $tags = get_the_tags($post-&gt;ID);
</span><span class="cx">                         if ( !empty( $tags ) ) {
</span><span class="cx">                                 $out = array();
</span><span class="cx">                                 foreach ( $tags as $c )
</span><del>-                                        $out[] = &quot;&lt;a href='edit.php?tag=$c-&gt;slug'&gt; &quot; . esc_html(sanitize_term_field('name', $c-&gt;name, $c-&gt;term_id, 'post_tag', 'display')) . &quot;&lt;/a&gt;&quot;;
</del><ins>+                                        $out[] = &quot;&lt;a href='edit.php?tag=$c-&gt;slug'&gt; &quot; . esc_html(sanitize_term_field('name', $c-&gt;name, $c-&gt;term_id, 'post_tag', 'display')) . '&lt;/a&gt;';
</ins><span class="cx">                                 echo join( ', ', $out );
</span><span class="cx">                         } else {
</span><span class="cx">                                 _e('No Tags');
</span><span class="lines">@@ -1417,7 +1416,7 @@
</span><span class="cx"> 
</span><span class="cx">                 case 'comments':
</span><span class="cx">                 ?&gt;
</span><del>-                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;div class=&quot;post-com-count-wrapper&quot;&gt;
</del><ins>+                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;div class=&quot;post-com-count-wrapper&quot;&gt;
</ins><span class="cx">                 &lt;?php
</span><span class="cx">                         $pending_phrase = sprintf( __('%s pending'), number_format( $pending_comments ) );
</span><span class="cx">                         if ( $pending_comments )
</span><span class="lines">@@ -1432,7 +1431,7 @@
</span><span class="cx"> 
</span><span class="cx">                 case 'author':
</span><span class="cx">                 ?&gt;
</span><del>-                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;a href=&quot;edit.php?post_type=&lt;?php echo $post-&gt;post_type; ?&gt;&amp;amp;author=&lt;?php the_author_meta('ID'); ?&gt;&quot;&gt;&lt;?php the_author() ?&gt;&lt;/a&gt;&lt;/td&gt;
</del><ins>+                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;a href=&quot;edit.php?post_type=&lt;?php echo $post-&gt;post_type; ?&gt;&amp;amp;author=&lt;?php the_author_meta('ID'); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/td&gt;
</ins><span class="cx">                 &lt;?php
</span><span class="cx">                 break;
</span><span class="cx"> 
</span><span class="lines">@@ -1444,19 +1443,19 @@
</span><span class="cx"> 
</span><span class="cx">                 case 'control_edit':
</span><span class="cx">                 ?&gt;
</span><del>-                &lt;td&gt;&lt;?php if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID) ) { echo &quot;&lt;a href='$edit_link' class='edit'&gt;&quot; . __('Edit') . &quot;&lt;/a&gt;&quot;; } ?&gt;&lt;/td&gt;
</del><ins>+                &lt;td&gt;&lt;?php if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $post-&gt;ID) ) { echo &quot;&lt;a href='$edit_link' class='edit'&gt;&quot; . __('Edit') . '&lt;/a&gt;'; } ?&gt;&lt;/td&gt;
</ins><span class="cx">                 &lt;?php
</span><span class="cx">                 break;
</span><span class="cx"> 
</span><span class="cx">                 case 'control_delete':
</span><span class="cx">                 ?&gt;
</span><del>-                &lt;td&gt;&lt;?php if ( current_user_can($post_type_object-&gt;cap-&gt;delete_post, $post-&gt;ID) ) { echo &quot;&lt;a href='&quot; . wp_nonce_url(&quot;post.php?action=delete&amp;amp;post=$id&quot;, 'delete-post_' . $post-&gt;ID) . &quot;' class='delete'&gt;&quot; . __('Delete') . &quot;&lt;/a&gt;&quot;; } ?&gt;&lt;/td&gt;
</del><ins>+                &lt;td&gt;&lt;?php if ( current_user_can($post_type_object-&gt;cap-&gt;delete_post, $post-&gt;ID) ) { echo &quot;&lt;a href='&quot; . wp_nonce_url(&quot;post.php?action=delete&amp;amp;post=$id&quot;, 'delete-post_' . $post-&gt;ID) . &quot;' class='delete'&gt;&quot; . __('Delete') . '&lt;/a&gt;'; } ?&gt;&lt;/td&gt;
</ins><span class="cx">                 &lt;?php
</span><span class="cx">                 break;
</span><span class="cx"> 
</span><span class="cx">                 default:
</span><span class="cx">                 ?&gt;
</span><del>-                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php do_action('manage_posts_custom_column', $column_name, $post-&gt;ID); ?&gt;&lt;/td&gt;
</del><ins>+                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;?php do_action('manage_posts_custom_column', $column_name, $post-&gt;ID); ?&gt;&lt;/td&gt;
</ins><span class="cx">                 &lt;?php
</span><span class="cx">                 break;
</span><span class="cx">         }
</span><span class="lines">@@ -1508,7 +1507,7 @@
</span><span class="cx">         $id = (int) $page-&gt;ID;
</span><span class="cx">         $rowclass = 'alternate' == $rowclass ? '' : 'alternate';
</span><span class="cx">         $posts_columns = get_column_headers( $current_screen );
</span><del>-        $hidden = get_hidden_columns(  $current_screen );
</del><ins>+        $hidden = get_hidden_columns( $current_screen );
</ins><span class="cx">         $title = _draft_or_post_title();
</span><span class="cx">         $post_type = $page-&gt;post_type;
</span><span class="cx">         $post_type_object = get_post_type_object($post_type);
</span><span class="lines">@@ -1567,7 +1566,7 @@
</span><span class="cx">                 $attributes = 'class=&quot;post-title page-title column-title&quot;' . $style;
</span><span class="cx">                 $edit_link = get_edit_post_link( $page-&gt;ID );
</span><span class="cx">                 ?&gt;
</span><del>-                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;strong&gt;&lt;?php if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $page-&gt;ID) &amp;&amp; $post-&gt;post_status != 'trash' ) { ?&gt;&lt;a class=&quot;row-title&quot; href=&quot;&lt;?php echo $edit_link; ?&gt;&quot; title=&quot;&lt;?php echo esc_attr(sprintf(__('Edit &amp;#8220;%s&amp;#8221;'), $title)); ?&gt;&quot;&gt;&lt;?php echo $pad; echo $title ?&gt;&lt;/a&gt;&lt;?php } else { echo $pad; echo $title; }; _post_states($page); echo isset($parent_name) ? ' | ' . $post_type_object-&gt;labels-&gt;parent_item_colon . ' ' . esc_html($parent_name) : ''; ?&gt;&lt;/strong&gt;
</del><ins>+                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;strong&gt;&lt;?php if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $page-&gt;ID) &amp;&amp; $post-&gt;post_status != 'trash' ) { ?&gt;&lt;a class=&quot;row-title&quot; href=&quot;&lt;?php echo $edit_link; ?&gt;&quot; title=&quot;&lt;?php echo esc_attr(sprintf(__('Edit &amp;#8220;%s&amp;#8221;'), $title)); ?&gt;&quot;&gt;&lt;?php echo $pad; echo $title; ?&gt;&lt;/a&gt;&lt;?php } else { echo $pad; echo $title; }; _post_states($page); echo isset($parent_name) ? ' | ' . $post_type_object-&gt;labels-&gt;parent_item_colon . ' ' . esc_html($parent_name) : ''; ?&gt;&lt;/strong&gt;
</ins><span class="cx">                 &lt;?php
</span><span class="cx">                 $actions = array();
</span><span class="cx">                 if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $page-&gt;ID) &amp;&amp; $post-&gt;post_status != 'trash' ) {
</span><span class="lines">@@ -1576,11 +1575,11 @@
</span><span class="cx">                 }
</span><span class="cx">                 if ( current_user_can($post_type_object-&gt;cap-&gt;delete_post, $page-&gt;ID) ) {
</span><span class="cx">                         if ( $post-&gt;post_status == 'trash' )
</span><del>-                                $actions['untrash'] = &quot;&lt;a title='&quot; . esc_attr(__('Remove this page from the Trash')) . &quot;' href='&quot; . wp_nonce_url(&quot;post.php?post_type=$post_type&amp;amp;action=untrash&amp;amp;post=$page-&gt;ID&quot;, 'untrash-' . $post-&gt;post_type . '_' . $page-&gt;ID) . &quot;'&gt;&quot; . __('Restore') . &quot;&lt;/a&gt;&quot;;
</del><ins>+                                $actions['untrash'] = &quot;&lt;a title='&quot; . esc_attr(__('Remove this page from the Trash')) . &quot;' href='&quot; . wp_nonce_url(&quot;post.php?post_type=$post_type&amp;amp;action=untrash&amp;amp;post=$page-&gt;ID&quot;, 'untrash-' . $post-&gt;post_type . '_' . $page-&gt;ID) . &quot;'&gt;&quot; . __('Restore') . '&lt;/a&gt;';
</ins><span class="cx">                         elseif ( EMPTY_TRASH_DAYS )
</span><del>-                                $actions['trash'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr(__('Move this page to the Trash')) . &quot;' href='&quot; . get_delete_post_link($page-&gt;ID) . &quot;'&gt;&quot; . __('Trash') . &quot;&lt;/a&gt;&quot;;
</del><ins>+                                $actions['trash'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr(__('Move this page to the Trash')) . &quot;' href='&quot; . get_delete_post_link($page-&gt;ID) . &quot;'&gt;&quot; . __('Trash') . '&lt;/a&gt;';
</ins><span class="cx">                         if ( $post-&gt;post_status == 'trash' || !EMPTY_TRASH_DAYS )
</span><del>-                                $actions['delete'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr(__('Delete this page permanently')) . &quot;' href='&quot; . wp_nonce_url(&quot;post.php?post_type=$post_type&amp;amp;action=delete&amp;amp;post=$page-&gt;ID&quot;, 'delete-' . $post-&gt;post_type . '_' . $page-&gt;ID) . &quot;'&gt;&quot; . __('Delete Permanently') . &quot;&lt;/a&gt;&quot;;
</del><ins>+                                $actions['delete'] = &quot;&lt;a class='submitdelete' title='&quot; . esc_attr(__('Delete this page permanently')) . &quot;' href='&quot; . wp_nonce_url(&quot;post.php?post_type=$post_type&amp;amp;action=delete&amp;amp;post=$page-&gt;ID&quot;, 'delete-' . $post-&gt;post_type . '_' . $page-&gt;ID) . &quot;'&gt;&quot; . __('Delete Permanently') . '&lt;/a&gt;';
</ins><span class="cx">                 }
</span><span class="cx">                 if ( in_array($post-&gt;post_status, array('pending', 'draft')) ) {
</span><span class="cx">                         if ( current_user_can($post_type_object-&gt;cap-&gt;edit_post, $page-&gt;ID) )
</span><span class="lines">@@ -1606,7 +1605,7 @@
</span><span class="cx"> 
</span><span class="cx">         case 'comments':
</span><span class="cx">                 ?&gt;
</span><del>-                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;div class=&quot;post-com-count-wrapper&quot;&gt;
</del><ins>+                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;div class=&quot;post-com-count-wrapper&quot;&gt;
</ins><span class="cx">                 &lt;?php
</span><span class="cx">                 $left = get_pending_comments_num( $page-&gt;ID );
</span><span class="cx">                 $pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
</span><span class="lines">@@ -1622,13 +1621,13 @@
</span><span class="cx"> 
</span><span class="cx">         case 'author':
</span><span class="cx">                 ?&gt;
</span><del>-                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;a href=&quot;edit.php?post_type=&lt;?php echo $post_type; ?&gt;&amp;amp;author=&lt;?php the_author_meta('ID'); ?&gt;&quot;&gt;&lt;?php the_author() ?&gt;&lt;/a&gt;&lt;/td&gt;
</del><ins>+                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;a href=&quot;edit.php?post_type=&lt;?php echo $post_type; ?&gt;&amp;amp;author=&lt;?php the_author_meta('ID'); ?&gt;&quot;&gt;&lt;?php the_author(); ?&gt;&lt;/a&gt;&lt;/td&gt;
</ins><span class="cx">                 &lt;?php
</span><span class="cx">                 break;
</span><span class="cx"> 
</span><span class="cx">         default:
</span><span class="cx">                 ?&gt;
</span><del>-                &lt;td &lt;?php echo $attributes ?&gt;&gt;&lt;?php do_action('manage_pages_custom_column', $column_name, $id); ?&gt;&lt;/td&gt;
</del><ins>+                &lt;td &lt;?php echo $attributes; ?&gt;&gt;&lt;?php do_action('manage_pages_custom_column', $column_name, $id); ?&gt;&lt;/td&gt;
</ins><span class="cx">                 &lt;?php
</span><span class="cx">                 break;
</span><span class="cx">         }
</span><span class="lines">@@ -1713,8 +1712,8 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         // if it is the last pagenum and there are orphaned pages, display them with paging as well
</span><del>-        if ( isset($children_pages) &amp;&amp; $count &lt; $end ){
-                foreach( $children_pages as $orphans ){
</del><ins>+        if ( isset($children_pages) &amp;&amp; $count &lt; $end ) {
+                foreach ( $children_pages as $orphans ) {
</ins><span class="cx">                         foreach ( $orphans as $op ) {
</span><span class="cx">                                 if ( $count &gt;= $end )
</span><span class="cx">                                         break;
</span><span class="lines">@@ -1764,7 +1763,7 @@
</span><span class="cx">                                 $my_parent = $my_parent-&gt;post_parent;
</span><span class="cx">                         }
</span><span class="cx">                         $num_parents = count($my_parents);
</span><del>-                        while( $my_parent = array_pop($my_parents) ) {
</del><ins>+                        while ( $my_parent = array_pop($my_parents) ) {
</ins><span class="cx">                                 echo &quot;\t&quot; . display_page_row( $my_parent, $level - $num_parents );
</span><span class="cx">                                 $num_parents--;
</span><span class="cx">                         }
</span><span class="lines">@@ -1787,9 +1786,9 @@
</span><span class="cx">  * @since 2.1.0
</span><span class="cx">  *
</span><span class="cx">  * @param object $user_object
</span><del>- * @param string $style Optional. Attributes added to the TR element.  Must be sanitized.
</del><ins>+ * @param string $style Optional. Attributes added to the TR element. Must be sanitized.
</ins><span class="cx">  * @param string $role Key for the $wp_roles array.
</span><del>- * @param int $numposts Optional. Post count to display for this user.  Defaults to zero, as in, a new user has made zero posts.
</del><ins>+ * @param int $numposts Optional. Post count to display for this user. Defaults to zero, as in, a new user has made zero posts.
</ins><span class="cx">  * @return string
</span><span class="cx">  */
</span><span class="cx"> function user_row( $user_object, $style = '', $role = '', $numposts = 0 ) {
</span><span class="lines">@@ -1823,7 +1822,7 @@
</span><span class="cx">                 // Set up the hover actions for this user
</span><span class="cx">                 $actions = array();
</span><span class="cx"> 
</span><del>-                if ( current_user_can('edit_user',  $user_object-&gt;ID) ) {
</del><ins>+                if ( current_user_can('edit_user', $user_object-&gt;ID) ) {
</ins><span class="cx">                         $edit = &quot;&lt;strong&gt;&lt;a href=\&quot;$edit_link\&quot;&gt;$user_object-&gt;user_login&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&quot;;
</span><span class="cx">                         $actions['edit'] = '&lt;a href=&quot;' . $edit_link . '&quot;&gt;' . __('Edit') . '&lt;/a&gt;';
</span><span class="cx">                 } else {
</span><span class="lines">@@ -1831,9 +1830,9 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 if ( !is_multisite() &amp;&amp; $current_user-&gt;ID != $user_object-&gt;ID &amp;&amp; current_user_can('delete_user', $user_object-&gt;ID) )
</span><del>-                        $actions['delete'] = &quot;&lt;a class='submitdelete' href='&quot; . wp_nonce_url(&quot;users.php?action=delete&amp;amp;user=$user_object-&gt;ID&quot;, 'bulk-users') . &quot;'&gt;&quot; . __('Delete') . &quot;&lt;/a&gt;&quot;;
</del><ins>+                        $actions['delete'] = &quot;&lt;a class='submitdelete' href='&quot; . wp_nonce_url(&quot;users.php?action=delete&amp;amp;user=$user_object-&gt;ID&quot;, 'bulk-users') . &quot;'&gt;&quot; . __('Delete') . '&lt;/a&gt;';
</ins><span class="cx">                 if ( is_multisite() &amp;&amp; $current_user-&gt;ID != $user_object-&gt;ID &amp;&amp; current_user_can('remove_user', $user_object-&gt;ID) )
</span><del>-                        $actions['remove'] = &quot;&lt;a class='submitdelete' href='&quot; . wp_nonce_url(&quot;users.php?action=remove&amp;amp;user=$user_object-&gt;ID&quot;, 'bulk-users') . &quot;'&gt;&quot; . __('Remove') . &quot;&lt;/a&gt;&quot;;
</del><ins>+                        $actions['remove'] = &quot;&lt;a class='submitdelete' href='&quot; . wp_nonce_url(&quot;users.php?action=remove&amp;amp;user=$user_object-&gt;ID&quot;, 'bulk-users') . &quot;'&gt;&quot; . __('Remove') . '&lt;/a&gt;';
</ins><span class="cx">                 $actions = apply_filters('user_row_actions', $actions, $user_object);
</span><span class="cx">                 $action_count = count($actions);
</span><span class="cx">                 $i = 0;
</span><span class="lines">@@ -2250,17 +2249,17 @@
</span><span class="cx"> 
</span><span class="cx">         &lt;div id=&quot;edithead&quot; style=&quot;display:none;&quot;&gt;
</span><span class="cx">                 &lt;div class=&quot;inside&quot;&gt;
</span><del>-                &lt;label for=&quot;author&quot;&gt;&lt;?php _e('Name') ?&gt;&lt;/label&gt;
</del><ins>+                &lt;label for=&quot;author&quot;&gt;&lt;?php _e('Name'); ?&gt;&lt;/label&gt;
</ins><span class="cx">                 &lt;input type=&quot;text&quot; name=&quot;newcomment_author&quot; size=&quot;50&quot; value=&quot;&quot; tabindex=&quot;101&quot; id=&quot;author&quot; /&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;div class=&quot;inside&quot;&gt;
</span><del>-                &lt;label for=&quot;author-email&quot;&gt;&lt;?php _e('E-mail') ?&gt;&lt;/label&gt;
</del><ins>+                &lt;label for=&quot;author-email&quot;&gt;&lt;?php _e('E-mail'); ?&gt;&lt;/label&gt;
</ins><span class="cx">                 &lt;input type=&quot;text&quot; name=&quot;newcomment_author_email&quot; size=&quot;50&quot; value=&quot;&quot; tabindex=&quot;102&quot; id=&quot;author-email&quot; /&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;div class=&quot;inside&quot;&gt;
</span><del>-                &lt;label for=&quot;author-url&quot;&gt;&lt;?php _e('URL') ?&gt;&lt;/label&gt;
</del><ins>+                &lt;label for=&quot;author-url&quot;&gt;&lt;?php _e('URL'); ?&gt;&lt;/label&gt;
</ins><span class="cx">                 &lt;input type=&quot;text&quot; id=&quot;author-url&quot; name=&quot;newcomment_author_url&quot; size=&quot;103&quot; value=&quot;&quot; tabindex=&quot;103&quot; /&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx">                 &lt;div style=&quot;clear:both;&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -2342,8 +2341,8 @@
</span><span class="cx"> &lt;table id=&quot;list-table&quot;&gt;
</span><span class="cx">         &lt;thead&gt;
</span><span class="cx">         &lt;tr&gt;
</span><del>-                &lt;th class=&quot;left&quot;&gt;&lt;?php _e( 'Name' ) ?&gt;&lt;/th&gt;
-                &lt;th&gt;&lt;?php _e( 'Value' ) ?&gt;&lt;/th&gt;
</del><ins>+                &lt;th class=&quot;left&quot;&gt;&lt;?php _e( 'Name' ); ?&gt;&lt;/th&gt;
+                &lt;th&gt;&lt;?php _e( 'Value' ); ?&gt;&lt;/th&gt;
</ins><span class="cx">         &lt;/tr&gt;
</span><span class="cx">         &lt;/thead&gt;
</span><span class="cx">         &lt;tbody id='the-list' class='list:meta'&gt;
</span><span class="lines">@@ -2427,12 +2426,12 @@
</span><span class="cx">         if ( $keys )
</span><span class="cx">                 natcasesort($keys);
</span><span class="cx"> ?&gt;
</span><del>-&lt;p&gt;&lt;strong&gt;&lt;?php _e( 'Add New Custom Field:' ) ?&gt;&lt;/strong&gt;&lt;/p&gt;
</del><ins>+&lt;p&gt;&lt;strong&gt;&lt;?php _e( 'Add New Custom Field:' ); ?&gt;&lt;/strong&gt;&lt;/p&gt;
</ins><span class="cx"> &lt;table id=&quot;newmeta&quot;&gt;
</span><span class="cx"> &lt;thead&gt;
</span><span class="cx"> &lt;tr&gt;
</span><span class="cx"> &lt;th class=&quot;left&quot;&gt;&lt;label for=&quot;metakeyselect&quot;&gt;&lt;?php _e( 'Name' ) ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><del>-&lt;th&gt;&lt;label for=&quot;metavalue&quot;&gt;&lt;?php _e( 'Value' ) ?&gt;&lt;/label&gt;&lt;/th&gt;
</del><ins>+&lt;th&gt;&lt;label for=&quot;metavalue&quot;&gt;&lt;?php _e( 'Value' ); ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;/thead&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -2445,7 +2444,7 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> 
</span><span class="cx">         foreach ( $keys as $key ) {
</span><del>-                echo &quot;\n&lt;option value='&quot; . esc_attr($key) . &quot;'&gt;&quot; . esc_html($key) . &quot;&lt;/option&gt;&quot;;
</del><ins>+                echo &quot;\n&lt;option value='&quot; . esc_attr($key) . &quot;'&gt;&quot; . esc_html($key) . '&lt;/option&gt;';
</ins><span class="cx">         }
</span><span class="cx"> ?&gt;
</span><span class="cx"> &lt;/select&gt;
</span><span class="lines">@@ -2461,7 +2460,7 @@
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;submit&quot;&gt;
</span><del>-&lt;input type=&quot;submit&quot; id=&quot;addmetasub&quot; name=&quot;addmeta&quot; class=&quot;add:the-list:newmeta&quot; tabindex=&quot;9&quot; value=&quot;&lt;?php esc_attr_e( 'Add Custom Field' ) ?&gt;&quot; /&gt;
</del><ins>+&lt;input type=&quot;submit&quot; id=&quot;addmetasub&quot; name=&quot;addmeta&quot; class=&quot;add:the-list:newmeta&quot; tabindex=&quot;9&quot; value=&quot;&lt;?php esc_attr_e( 'Add Custom Field' ); ?&gt;&quot; /&gt;
</ins><span class="cx"> &lt;?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?&gt;
</span><span class="cx"> &lt;/td&gt;&lt;/tr&gt;
</span><span class="cx"> &lt;/tbody&gt;
</span><span class="lines">@@ -2591,7 +2590,7 @@
</span><span class="cx">                         else
</span><span class="cx">                                 $current = '';
</span><span class="cx"> 
</span><del>-                        echo &quot;\n\t&lt;option class='level-$level' value='$item-&gt;ID'$current&gt;$pad &quot; . esc_html($item-&gt;post_title) . &quot;&lt;/option&gt;&quot;;
</del><ins>+                        echo &quot;\n\t&lt;option class='level-$level' value='$item-&gt;ID'$current&gt;$pad &quot; . esc_html($item-&gt;post_title) . '&lt;/option&gt;';
</ins><span class="cx">                         parent_dropdown( $default, $item-&gt;ID, $level +1 );
</span><span class="cx">                 }
</span><span class="cx">         } else {
</span><span class="lines">@@ -2623,26 +2622,26 @@
</span><span class="cx">         &lt;col /&gt;
</span><span class="cx">         &lt;col class=&quot;widefat&quot; /&gt;
</span><span class="cx">         &lt;tr&gt;
</span><del>-                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'URL' ) ?&gt;&lt;/th&gt;
</del><ins>+                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'URL' ); ?&gt;&lt;/th&gt;
</ins><span class="cx">                 &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;?php echo wp_get_attachment_url(); ?&gt;&lt;/textarea&gt;&lt;/td&gt;
</span><span class="cx">         &lt;/tr&gt;
</span><span class="cx"> &lt;?php if ( $icon ) : ?&gt;
</span><span class="cx">         &lt;tr&gt;
</span><span class="cx">                 &lt;th scope=&quot;row&quot;&gt;&lt;?php $thumb ? _e( 'Thumbnail linked to file' ) : _e( 'Image linked to file' ); ?&gt;&lt;/th&gt;
</span><del>-                &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;a href=&quot;&lt;?php echo wp_get_attachment_url(); ?&gt;&quot;&gt;&lt;?php echo $icon ?&gt;&lt;/a&gt;&lt;/textarea&gt;&lt;/td&gt;
</del><ins>+                &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;a href=&quot;&lt;?php echo wp_get_attachment_url(); ?&gt;&quot;&gt;&lt;?php echo $icon; ?&gt;&lt;/a&gt;&lt;/textarea&gt;&lt;/td&gt;
</ins><span class="cx">         &lt;/tr&gt;
</span><span class="cx">         &lt;tr&gt;
</span><span class="cx">                 &lt;th scope=&quot;row&quot;&gt;&lt;?php $thumb ? _e( 'Thumbnail linked to page' ) : _e( 'Image linked to page' ); ?&gt;&lt;/th&gt;
</span><del>-                &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;a href=&quot;&lt;?php echo get_attachment_link( $post-&gt;ID ) ?&gt;&quot; rel=&quot;attachment wp-att-&lt;?php echo $post-&gt;ID; ?&gt;&quot;&gt;&lt;?php echo $icon ?&gt;&lt;/a&gt;&lt;/textarea&gt;&lt;/td&gt;
</del><ins>+                &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;a href=&quot;&lt;?php echo get_attachment_link( $post-&gt;ID ); ?&gt;&quot; rel=&quot;attachment wp-att-&lt;?php echo $post-&gt;ID; ?&gt;&quot;&gt;&lt;?php echo $icon; ?&gt;&lt;/a&gt;&lt;/textarea&gt;&lt;/td&gt;
</ins><span class="cx">         &lt;/tr&gt;
</span><span class="cx"> &lt;?php else : ?&gt;
</span><span class="cx">         &lt;tr&gt;
</span><del>-                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Link to file' ) ?&gt;&lt;/th&gt;
</del><ins>+                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Link to file' ); ?&gt;&lt;/th&gt;
</ins><span class="cx">                 &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;a href=&quot;&lt;?php echo wp_get_attachment_url(); ?&gt;&quot; class=&quot;attachmentlink&quot;&gt;&lt;?php echo basename( wp_get_attachment_url() ); ?&gt;&lt;/a&gt;&lt;/textarea&gt;&lt;/td&gt;
</span><span class="cx">         &lt;/tr&gt;
</span><span class="cx">         &lt;tr&gt;
</span><del>-                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Link to page' ) ?&gt;&lt;/th&gt;
-                &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;a href=&quot;&lt;?php echo get_attachment_link( $post-&gt;ID ) ?&gt;&quot; rel=&quot;attachment wp-att-&lt;?php echo $post-&gt;ID ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/textarea&gt;&lt;/td&gt;
</del><ins>+                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Link to page' ); ?&gt;&lt;/th&gt;
+                &lt;td&gt;&lt;textarea rows=&quot;1&quot; cols=&quot;40&quot; type=&quot;text&quot; class=&quot;attachmentlinks&quot; readonly=&quot;readonly&quot;&gt;&lt;a href=&quot;&lt;?php echo get_attachment_link( $post-&gt;ID ); ?&gt;&quot; rel=&quot;attachment wp-att-&lt;?php echo $post-&gt;ID; ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/textarea&gt;&lt;/td&gt;
</ins><span class="cx">         &lt;/tr&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> &lt;/table&gt;
</span><span class="lines">@@ -2781,36 +2780,36 @@
</span><span class="cx">                 $wp_meta_boxes[$page][$context] = array();
</span><span class="cx"> 
</span><span class="cx">         foreach ( array_keys($wp_meta_boxes[$page]) as $a_context ) {
</span><del>-        foreach ( array('high', 'core', 'default', 'low') as $a_priority ) {
-                if ( !isset($wp_meta_boxes[$page][$a_context][$a_priority][$id]) )
-                        continue;
-
-                // If a core box was previously added or removed by a plugin, don't add.
-                if ( 'core' == $priority ) {
-                        // If core box previously deleted, don't add
-                        if ( false === $wp_meta_boxes[$page][$a_context][$a_priority][$id] )
</del><ins>+                foreach ( array('high', 'core', 'default', 'low') as $a_priority ) {
+                        if ( !isset($wp_meta_boxes[$page][$a_context][$a_priority][$id]) )
+                                continue;
+        
+                        // If a core box was previously added or removed by a plugin, don't add.
+                        if ( 'core' == $priority ) {
+                                // If core box previously deleted, don't add
+                                if ( false === $wp_meta_boxes[$page][$a_context][$a_priority][$id] )
+                                        return;
+                                // If box was added with default priority, give it core priority to maintain sort order
+                                if ( 'default' == $a_priority ) {
+                                        $wp_meta_boxes[$page][$a_context]['core'][$id] = $wp_meta_boxes[$page][$a_context]['default'][$id];
+                                        unset($wp_meta_boxes[$page][$a_context]['default'][$id]);
+                                }
</ins><span class="cx">                                 return;
</span><del>-                        // If box was added with default priority, give it core priority to maintain sort order
-                        if ( 'default' == $a_priority ) {
-                                $wp_meta_boxes[$page][$a_context]['core'][$id] = $wp_meta_boxes[$page][$a_context]['default'][$id];
-                                unset($wp_meta_boxes[$page][$a_context]['default'][$id]);
</del><span class="cx">                         }
</span><del>-                        return;
</del><ins>+                        // If no priority given and id already present, use existing priority
+                        if ( empty($priority) ) {
+                                $priority = $a_priority;
+                        // else if we're adding to the sorted priortiy, we don't know the title or callback. Glab them from the previously added context/priority.
+                        } elseif ( 'sorted' == $priority ) {
+                                $title = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['title'];
+                                $callback = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['callback'];
+                                $callback_args = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['args'];
+                        }
+                        // An id can be in only one priority and one context
+                        if ( $priority != $a_priority || $context != $a_context )
+                                unset($wp_meta_boxes[$page][$a_context][$a_priority][$id]);
</ins><span class="cx">                 }
</span><del>-                // If no priority given and id already present, use existing priority
-                if ( empty($priority) ) {
-                        $priority = $a_priority;
-                // else if we're adding to the sorted priortiy, we don't know the title or callback. Glab them from the previously added context/priority.
-                } elseif ( 'sorted' == $priority ) {
-                        $title = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['title'];
-                        $callback = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['callback'];
-                        $callback_args = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['args'];
-                }
-                // An id can be in only one priority and one context
-                if ( $priority != $a_priority || $context != $a_context )
-                        unset($wp_meta_boxes[$page][$a_context][$a_priority][$id]);
</del><span class="cx">         }
</span><del>-        }
</del><span class="cx"> 
</span><span class="cx">         if ( empty($priority) )
</span><span class="cx">                 $priority = 'low';
</span><span class="lines">@@ -2873,7 +2872,7 @@
</span><span class="cx">                 }
</span><span class="cx">         } while(0);
</span><span class="cx"> 
</span><del>-        echo &quot;&lt;/div&gt;&quot;;
</del><ins>+        echo '&lt;/div&gt;';
</ins><span class="cx"> 
</span><span class="cx">         return $i;
</span><span class="cx"> 
</span><span class="lines">@@ -3154,7 +3153,7 @@
</span><span class="cx">  * @param boolean $sanitize Whether to re-sanitize the setting value before returning errors.
</span><span class="cx">  * @return array Array of settings errors
</span><span class="cx">  */
</span><del>-function get_settings_errors( $setting = '', $sanitize = FALSE ) {
</del><ins>+function get_settings_errors( $setting = '', $sanitize = false ) {
</ins><span class="cx">         global $wp_settings_errors;
</span><span class="cx"> 
</span><span class="cx">         // If $sanitize is true, manually re-run the sanitizisation for this option
</span><span class="lines">@@ -3205,23 +3204,23 @@
</span><span class="cx">  * @param boolean $hide_on_update If set to true errors will not be shown if the settings page has already been submitted.
</span><span class="cx">  * @return &lt;type&gt;
</span><span class="cx">  */
</span><del>-function settings_errors ( $setting = '', $sanitize = FALSE, $hide_on_update = FALSE ) {
</del><ins>+function settings_errors( $setting = '', $sanitize = false, $hide_on_update = false ) {
</ins><span class="cx"> 
</span><del>-        if ($hide_on_update AND $_GET['updated']) return;
</del><ins>+        if ( $hide_on_update &amp;&amp; !empty($_GET['updated']) )
+                return;
</ins><span class="cx"> 
</span><span class="cx">         $settings_errors = get_settings_errors( $setting, $sanitize );
</span><span class="cx"> 
</span><del>-        if ( !is_array($settings_errors) ) return;
</del><ins>+        if ( !is_array($settings_errors) )
+                return;
</ins><span class="cx"> 
</span><del>-        $output = '';
</del><span class="cx">         foreach ( $settings_errors as $key =&gt; $details ) {
</span><span class="cx">                 $css_id = 'setting-error-' . $details['code'];
</span><span class="cx">                 $css_class = $details['type'] . ' settings-error';
</span><del>-                $output .= &quot;&lt;div id='$css_id' class='$css_class'&gt; \n&quot;;
-                $output .= &quot;&lt;p&gt;&lt;strong&gt;{$details['message']}&lt;/strong&gt;&lt;/p&gt;&quot;;
-                $output .= &quot;&lt;/div&gt; \n&quot;;
</del><ins>+                echo &quot;&lt;div id='$css_id' class='$css_class'&gt;\n&quot;;
+                echo &quot;&lt;p&gt;&lt;strong&gt;{$details['message']}&lt;/strong&gt;&lt;/p&gt;&quot;;
+                echo &quot;&lt;/div&gt;\n&quot;;
</ins><span class="cx">         }
</span><del>-        echo $output;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="lines">@@ -3273,7 +3272,7 @@
</span><span class="cx">                                 &lt;?php wp_nonce_field( 'find-posts', '_ajax_nonce', false ); ?&gt;
</span><span class="cx">                                 &lt;label class=&quot;screen-reader-text&quot; for=&quot;find-posts-input&quot;&gt;&lt;?php _e( 'Search' ); ?&gt;&lt;/label&gt;
</span><span class="cx">                                 &lt;input type=&quot;text&quot; id=&quot;find-posts-input&quot; name=&quot;ps&quot; value=&quot;&quot; /&gt;
</span><del>-                                &lt;input type=&quot;button&quot; onclick=&quot;findPosts.send();&quot; value=&quot;&lt;?php esc_attr_e( 'Search' ); ?&gt;&quot; class=&quot;button&quot; /&gt;&lt;br /&gt;
</del><ins>+                                &lt;input type=&quot;button&quot; onClick=&quot;findPosts.send();&quot; value=&quot;&lt;?php esc_attr_e( 'Search' ); ?&gt;&quot; class=&quot;button&quot; /&gt;&lt;br /&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;?php
</span><span class="cx">                                 $post_types = get_post_types( array('public' =&gt; true), 'objects' );
</span><span class="lines">@@ -3281,7 +3280,7 @@
</span><span class="cx">                                         if ( 'attachment' == $post-&gt;name )
</span><span class="cx">                                                 continue;
</span><span class="cx">                                 ?&gt;
</span><del>-                                &lt;input type=&quot;radio&quot; name=&quot;find-posts-what&quot; id=&quot;find-posts-&lt;?php echo esc_attr($post-&gt;name); ?&gt;&quot; value=&quot;&lt;?php echo esc_attr($post-&gt;name); ?&gt;&quot; &lt;?php checked($post-&gt;name,  'post'); ?&gt; /&gt;
</del><ins>+                                &lt;input type=&quot;radio&quot; name=&quot;find-posts-what&quot; id=&quot;find-posts-&lt;?php echo esc_attr($post-&gt;name); ?&gt;&quot; value=&quot;&lt;?php echo esc_attr($post-&gt;name); ?&gt;&quot; &lt;?php checked($post-&gt;name, 'post'); ?&gt; /&gt;
</ins><span class="cx">                                 &lt;label for=&quot;find-posts-&lt;?php echo esc_attr($post-&gt;name); ?&gt;&quot;&gt;&lt;?php echo $post-&gt;label; ?&gt;&lt;/label&gt;
</span><span class="cx">                                 &lt;?php
</span><span class="cx">                                 } ?&gt;
</span><span class="lines">@@ -3289,7 +3288,7 @@
</span><span class="cx">                         &lt;div id=&quot;find-posts-response&quot;&gt;&lt;/div&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx">                 &lt;div class=&quot;find-box-buttons&quot;&gt;
</span><del>-                        &lt;input type=&quot;button&quot; class=&quot;button alignleft&quot; onclick=&quot;findPosts.close();&quot; value=&quot;&lt;?php esc_attr_e('Close'); ?&gt;&quot; /&gt;
</del><ins>+                        &lt;input type=&quot;button&quot; class=&quot;button alignleft&quot; onClick=&quot;findPosts.close();&quot; value=&quot;&lt;?php esc_attr_e('Close'); ?&gt;&quot; /&gt;
</ins><span class="cx">                         &lt;input id=&quot;find-posts-submit&quot; type=&quot;submit&quot; class=&quot;button-primary alignright&quot; value=&quot;&lt;?php esc_attr_e('Select'); ?&gt;&quot; /&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx">         &lt;/div&gt;
</span><span class="lines">@@ -3307,7 +3306,8 @@
</span><span class="cx">  */
</span><span class="cx"> function the_post_password() {
</span><span class="cx">         global $post;
</span><del>-        if ( isset( $post-&gt;post_password ) ) echo esc_attr( $post-&gt;post_password );
</del><ins>+        if ( isset( $post-&gt;post_password ) )
+                echo esc_attr( $post-&gt;post_password );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="lines">@@ -3400,7 +3400,7 @@
</span><span class="cx"> 
</span><span class="cx">         array_shift($allowed_actions);
</span><span class="cx"> 
</span><del>-        foreach ( $allowed_actions as $action =&gt; $label) {
</del><ins>+        foreach ( $allowed_actions as $action =&gt; $label ) {
</ins><span class="cx">                 echo &quot;&lt;div class='favorite-action'&gt;&lt;a href='$action'&gt;&quot;;
</span><span class="cx">                 echo $label;
</span><span class="cx">                 echo &quot;&lt;/a&gt;&lt;/div&gt;\n&quot;;
</span><span class="lines">@@ -3436,7 +3436,8 @@
</span><span class="cx">  *
</span><span class="cx">  */
</span><span class="cx"> function _admin_search_query() {
</span><del>-        echo isset($_GET['s']) ? esc_attr( stripslashes( $_GET['s'] ) ) : '';
</del><ins>+        if ( isset($_GET['s']) )
+                echo esc_attr( stripslashes( $_GET['s'] ) );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="lines">@@ -3448,17 +3449,18 @@
</span><span class="cx">  *
</span><span class="cx">  */
</span><span class="cx"> function iframe_header( $title = '', $limit_styles = false ) {
</span><del>-global $hook_suffix;
-?&gt;&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
</del><ins>+        global $hook_suffix;
+?&gt;
+&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
</ins><span class="cx"> &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &lt;?php do_action('admin_xml_ns'); ?&gt; &lt;?php language_attributes(); ?&gt;&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx"> &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;&lt;?php bloginfo('html_type'); ?&gt;; charset=&lt;?php echo get_option('blog_charset'); ?&gt;&quot; /&gt;
</span><del>-&lt;title&gt;&lt;?php bloginfo('name') ?&gt; &amp;rsaquo; &lt;?php echo $title ?&gt; &amp;#8212; &lt;?php _e('WordPress'); ?&gt;&lt;/title&gt;
</del><ins>+&lt;title&gt;&lt;?php bloginfo('name'); ?&gt; &amp;rsaquo; &lt;?php echo $title; ?&gt; &amp;#8212; &lt;?php _e('WordPress'); ?&gt;&lt;/title&gt;
</ins><span class="cx"> &lt;?php
</span><del>-wp_enqueue_style( 'global' );
-if ( ! $limit_styles )
-        wp_enqueue_style( 'wp-admin' );
-wp_enqueue_style( 'colors' );
</del><ins>+        wp_enqueue_style( 'global' );
+        if ( ! $limit_styles )
+                wp_enqueue_style( 'wp-admin' );
+        wp_enqueue_style( 'colors' );
</ins><span class="cx"> ?&gt;
</span><span class="cx"> &lt;script type=&quot;text/javascript&quot;&gt;
</span><span class="cx"> //&lt;![CDATA[
</span><span class="lines">@@ -3467,14 +3469,14 @@
</span><span class="cx"> //]]&gt;
</span><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;?php
</span><del>-do_action('admin_print_styles');
-do_action('admin_print_scripts');
-do_action('admin_head');
-
-$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
</del><ins>+        do_action('admin_print_styles');
+        do_action('admin_print_scripts');
+        do_action('admin_head');
+        
+        $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
</ins><span class="cx"> ?&gt;
</span><span class="cx"> &lt;/head&gt;
</span><del>-&lt;body&lt;?php if ( isset($GLOBALS['body_id']) ) echo ' id=&quot;' . $GLOBALS['body_id'] . '&quot;'; ?&gt;  class=&quot;no-js &lt;?php echo $admin_body_class; ?&gt;&quot;&gt;
</del><ins>+&lt;body&lt;?php if ( isset($GLOBALS['body_id']) ) echo ' id=&quot;' . $GLOBALS['body_id'] . '&quot;'; ?&gt; class=&quot;no-js &lt;?php echo $admin_body_class; ?&gt;&quot;&gt;
</ins><span class="cx"> &lt;script type=&quot;text/javascript&quot;&gt;
</span><span class="cx"> //&lt;![CDATA[
</span><span class="cx"> (function(){
</span><span class="lines">@@ -3587,7 +3589,7 @@
</span><span class="cx">                         $show_screen = true;
</span><span class="cx">                         break;
</span><span class="cx">         }
</span><del>-        if( ! empty( $settings ) )
</del><ins>+        if ( ! empty( $settings ) )
</ins><span class="cx">                 $show_screen = true;
</span><span class="cx"> ?&gt;
</span><span class="cx"> &lt;div id=&quot;screen-meta&quot;&gt;
</span><span class="lines">@@ -3595,14 +3597,14 @@
</span><span class="cx"> &lt;div id=&quot;screen-options-wrap&quot; class=&quot;hidden&quot;&gt;
</span><span class="cx">         &lt;form id=&quot;adv-settings&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
</span><span class="cx">         &lt;?php if ( isset($wp_meta_boxes[$screen-&gt;id]) ) : ?&gt;
</span><del>-                &lt;h5&gt;&lt;?php _ex('Show on screen', 'Metaboxes') ?&gt;&lt;/h5&gt;
</del><ins>+                &lt;h5&gt;&lt;?php _ex('Show on screen', 'Metaboxes'); ?&gt;&lt;/h5&gt;
</ins><span class="cx">                 &lt;div class=&quot;metabox-prefs&quot;&gt;
</span><span class="cx">                         &lt;?php meta_box_prefs($screen); ?&gt;
</span><span class="cx">                         &lt;br class=&quot;clear&quot; /&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx">                 &lt;?php endif;
</span><span class="cx">                 if ( ! empty($column_screens) ) : ?&gt;
</span><del>-                &lt;h5&gt;&lt;?php echo ( isset( $column_screens['_title'] ) ?  $column_screens['_title'] :  _x('Show on screen', 'Columns') ) ?&gt;&lt;/h5&gt;
</del><ins>+                &lt;h5&gt;&lt;?php echo ( isset( $column_screens['_title'] ) ? $column_screens['_title'] : _x('Show on screen', 'Columns') ); ?&gt;&lt;/h5&gt;
</ins><span class="cx">                 &lt;div class=&quot;metabox-prefs&quot;&gt;
</span><span class="cx">                         &lt;?php manage_columns_prefs($screen); ?&gt;
</span><span class="cx">                         &lt;br class=&quot;clear&quot; /&gt;
</span><span class="lines">@@ -3612,7 +3614,7 @@
</span><span class="cx"> 
</span><span class="cx">         if ( !empty( $screen_options ) ) {
</span><span class="cx">                 ?&gt;
</span><del>-                &lt;h5&gt;&lt;?php _ex('Show on screen', 'Screen Options') ?&gt;&lt;/h5&gt;
</del><ins>+                &lt;h5&gt;&lt;?php _ex('Show on screen', 'Screen Options'); ?&gt;&lt;/h5&gt;
</ins><span class="cx">                 &lt;?php
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -3646,11 +3648,11 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div id=&quot;screen-meta-links&quot;&gt;
</span><span class="cx"> &lt;div id=&quot;contextual-help-link-wrap&quot; class=&quot;hide-if-no-js screen-meta-toggle&quot;&gt;
</span><del>-&lt;a href=&quot;#contextual-help&quot; id=&quot;contextual-help-link&quot; class=&quot;show-settings&quot;&gt;&lt;?php _e('Help') ?&gt;&lt;/a&gt;
</del><ins>+&lt;a href=&quot;#contextual-help&quot; id=&quot;contextual-help-link&quot; class=&quot;show-settings&quot;&gt;&lt;?php _e('Help'); ?&gt;&lt;/a&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;?php if ( $show_screen ) { ?&gt;
</span><span class="cx"> &lt;div id=&quot;screen-options-link-wrap&quot; class=&quot;hide-if-no-js screen-meta-toggle&quot;&gt;
</span><del>-&lt;a href=&quot;#screen-options&quot; id=&quot;show-settings-link&quot; class=&quot;show-settings&quot;&gt;&lt;?php _e('Screen Options') ?&gt;&lt;/a&gt;
</del><ins>+&lt;a href=&quot;#screen-options&quot; id=&quot;show-settings-link&quot; class=&quot;show-settings&quot;&gt;&lt;?php _e('Screen Options'); ?&gt;&lt;/a&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;?php } ?&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -3663,7 +3665,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @since 2.7.0
</span><span class="cx">  *
</span><del>- * @param string $screen The handle for the screen to add help to.  This is usually the hook name returned by the add_*_page() functions.
</del><ins>+ * @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
</ins><span class="cx">  * @param string $help Arbitrary help text
</span><span class="cx">  */
</span><span class="cx"> function add_contextual_help($screen, $help) {
</span><span class="lines">@@ -3718,7 +3720,7 @@
</span><span class="cx">         $num = $columns[$screen-&gt;id];
</span><span class="cx"> 
</span><span class="cx">         if ( ! $screen_layout_columns )
</span><del>-                        $screen_layout_columns = 2;
</del><ins>+                $screen_layout_columns = 2;
</ins><span class="cx"> 
</span><span class="cx">         $i = 1;
</span><span class="cx">         $return = '&lt;h5&gt;' . __('Screen Layout') . &quot;&lt;/h5&gt;\n&lt;div class='columns-prefs'&gt;&quot; . __('Number of Columns:') . &quot;\n&quot;;
</span><span class="lines">@@ -3895,7 +3897,7 @@
</span><span class="cx">  *
</span><span class="cx">  * @param string $id Screen id, optional.
</span><span class="cx">  */
</span><del>-function set_current_screen( $id =  '' ) {
</del><ins>+function set_current_screen( $id = '' ) {
</ins><span class="cx">         global $current_screen, $hook_suffix, $typenow, $taxnow;
</span><span class="cx"> 
</span><span class="cx">         $action = '';
</span></span></pre>
</div>
</div>

</body>
</html>