<!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>[14737] trunk/wp-admin: Misc HTML validation fixes.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/14737">14737</a></dd>
<dt>Author</dt> <dd>markjaquith</dd>
<dt>Date</dt> <dd>2010-05-19 05:32:39 +0000 (Wed, 19 May 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Misc HTML validation fixes. see <a href="http://trac.wordpress.org/ticket/13383">#13383</a>. props jshreve</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminmseditphp">trunk/wp-admin/ms-edit.php</a></li>
<li><a href="#trunkwpadminmssitesphp">trunk/wp-admin/ms-sites.php</a></li>
<li><a href="#trunkwpadminmsusersphp">trunk/wp-admin/ms-users.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminmseditphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-edit.php (14736 => 14737)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-edit.php        2010-05-19 05:23:18 UTC (rev 14736)
+++ trunk/wp-admin/ms-edit.php        2010-05-19 05:32:39 UTC (rev 14737)
</span><span class="lines">@@ -141,7 +141,7 @@
</span><span class="cx">                 exit();
</span><span class="cx">         break;
</span><span class="cx">         case 'addblog':
</span><del>-                check_admin_referer( 'add-blog' );
</del><ins>+                check_admin_referer( 'add-blog', '_wpnonce_add-blog' );
</ins><span class="cx"> 
</span><span class="cx">                 if ( ! current_user_can( 'manage_sites' ) )
</span><span class="cx">                         wp_die( __( 'You do not have permission to access this page.' ) );
</span><span class="lines">@@ -325,7 +325,7 @@
</span><span class="cx"> 
</span><span class="cx">         case 'allblogs':
</span><span class="cx">                 if ( isset( $_POST['doaction']) || isset($_POST['doaction2'] ) ) {
</span><del>-                        check_admin_referer( 'bulk-ms-sites' );
</del><ins>+                        check_admin_referer( 'bulk-ms-sites', '_wpnonce_bulk-ms-sites' );
</ins><span class="cx"> 
</span><span class="cx">                         if ( ! current_user_can( 'manage_sites' ) )
</span><span class="cx">                                 wp_die( __( 'You do not have permission to access this page.' ) );
</span><span class="lines">@@ -507,7 +507,7 @@
</span><span class="cx">                         wp_die( __( 'You do not have permission to access this page.' ) );
</span><span class="cx"> 
</span><span class="cx">                 if ( isset( $_POST['doaction']) || isset($_POST['doaction2'] ) ) {
</span><del>-                        check_admin_referer( 'bulk-ms-users' );
</del><ins>+                        check_admin_referer( 'bulk-ms-users', '_wpnonce_bulk-ms-users' );
</ins><span class="cx"> 
</span><span class="cx">                         if ( $_GET['action'] != -1 || $_POST['action2'] != -1 )
</span><span class="cx">                                 $doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];
</span><span class="lines">@@ -590,7 +590,7 @@
</span><span class="cx">         break;
</span><span class="cx"> 
</span><span class="cx">         case 'adduser':
</span><del>-                check_admin_referer( 'add-user' );
</del><ins>+                check_admin_referer( 'add-user', '_wpnonce_add-user' );
</ins><span class="cx">                 if ( ! current_user_can( 'manage_network_users' ) )
</span><span class="cx">                         wp_die( __( 'You do not have permission to access this page.' ) );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminmssitesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-sites.php (14736 => 14737)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-sites.php        2010-05-19 05:23:18 UTC (rev 14736)
+++ trunk/wp-admin/ms-sites.php        2010-05-19 05:32:39 UTC (rev 14737)
</span><span class="lines">@@ -246,10 +246,10 @@
</span><span class="cx">                                                 if ( $val-&gt;user_id != $current_user-&gt;data-&gt;ID ) {
</span><span class="cx">                                                         ?&gt;
</span><span class="cx">                                                         &lt;td&gt;
</span><del>-                                                                &lt;select name=&quot;role[&lt;?php echo $val-&gt;user_id ?&gt;]&quot; id=&quot;new_role&quot;&gt;&lt;?php
</del><ins>+                                                                &lt;select name=&quot;role[&lt;?php echo $val-&gt;user_id ?&gt;]&quot; id=&quot;new_role_1&quot;&gt;&lt;?php
</ins><span class="cx">                                                                         foreach ( $editblog_roles as $role =&gt; $role_assoc ){
</span><span class="cx">                                                                                 $name = translate_user_role( $role_assoc['name'] );
</span><del>-                                                                                echo '&lt;option ' . selected( $role, $existing_role ) . ' value=&quot;' . esc_attr( $role ) . '&quot;&gt;' . esc_html( $name ) . '&lt;/option&gt;';
</del><ins>+                                                                                echo '&lt;option ' . selected( $role, $existing_role, false ) . ' value=&quot;' . esc_attr( $role ) . '&quot;&gt;' . esc_html( $name ) . '&lt;/option&gt;';
</ins><span class="cx">                                                                         }
</span><span class="cx">                                                                         ?&gt;
</span><span class="cx">                                                                 &lt;/select&gt;
</span><span class="lines">@@ -282,7 +282,7 @@
</span><span class="cx">                                                         &lt;tr&gt;
</span><span class="cx">                                                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Role:' ) ?&gt;&lt;/th&gt;
</span><span class="cx">                                                                 &lt;td&gt;
</span><del>-                                                                        &lt;select name=&quot;new_role&quot; id=&quot;new_role&quot;&gt;
</del><ins>+                                                                        &lt;select name=&quot;new_role&quot; id=&quot;new_role_0&quot;&gt;
</ins><span class="cx">                                                                         &lt;?php
</span><span class="cx">                                                                         reset( $editblog_roles );
</span><span class="cx">                                                                         foreach ( $editblog_roles as $role =&gt; $role_assoc ){
</span><span class="lines">@@ -418,7 +418,7 @@
</span><span class="cx">                                 &lt;option value=&quot;notspam&quot;&gt;&lt;?php _ex( 'Not Spam', 'site' ); ?&gt;&lt;/option&gt;
</span><span class="cx">                         &lt;/select&gt;
</span><span class="cx">                         &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e( 'Apply' ); ?&gt;&quot; name=&quot;doaction&quot; id=&quot;doaction&quot; class=&quot;button-secondary action&quot; /&gt;
</span><del>-                        &lt;?php wp_nonce_field( 'bulk-ms-sites' ); ?&gt;
</del><ins>+                        &lt;?php wp_nonce_field( 'bulk-ms-sites', '_wpnonce_bulk-ms-sites' ); ?&gt;
</ins><span class="cx">                 &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;?php if ( $page_links ) { ?&gt;
</span><span class="lines">@@ -679,7 +679,7 @@
</span><span class="cx">                 &lt;div id=&quot;form-add-site&quot; class=&quot;wrap&quot;&gt;
</span><span class="cx">                         &lt;h3&gt;&lt;?php _e( 'Add Site' ) ?&gt;&lt;/h3&gt;
</span><span class="cx">                         &lt;form method=&quot;post&quot; action=&quot;ms-edit.php?action=addblog&quot;&gt;
</span><del>-                                &lt;?php wp_nonce_field( 'add-blog' ) ?&gt;
</del><ins>+                                &lt;?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?&gt;
</ins><span class="cx">                                 &lt;table class=&quot;form-table&quot;&gt;
</span><span class="cx">                                         &lt;tr class=&quot;form-field form-required&quot;&gt;
</span><span class="cx">                                                 &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Site Address' ) ?&gt;&lt;/th&gt;
</span></span></pre></div>
<a id="trunkwpadminmsusersphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-users.php (14736 => 14737)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-users.php        2010-05-19 05:23:18 UTC (rev 14736)
+++ trunk/wp-admin/ms-users.php        2010-05-19 05:32:39 UTC (rev 14737)
</span><span class="lines">@@ -134,7 +134,7 @@
</span><span class="cx">                                         &lt;option value=&quot;notspam&quot;&gt;&lt;?php _ex( 'Not Spam', 'user' ); ?&gt;&lt;/option&gt;
</span><span class="cx">                                 &lt;/select&gt;
</span><span class="cx">                                 &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e( 'Apply' ); ?&gt;&quot; name=&quot;doaction&quot; id=&quot;doaction&quot; class=&quot;button-secondary action&quot; /&gt;
</span><del>-                                &lt;?php wp_nonce_field( 'bulk-ms-users' ); ?&gt;
</del><ins>+                                &lt;?php wp_nonce_field( 'bulk-ms-users', '_wpnonce_bulk-ms-users' ); ?&gt;
</ins><span class="cx">                         &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;?php if ( $page_links ) { ?&gt;
</span><span class="lines">@@ -355,7 +355,7 @@
</span><span class="cx">                 &lt;/tr&gt;
</span><span class="cx">         &lt;/table&gt;
</span><span class="cx">         &lt;p class=&quot;submit&quot;&gt;
</span><del>-                &lt;?php wp_nonce_field( 'add-user' ) ?&gt;
</del><ins>+                &lt;?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?&gt;
</ins><span class="cx">                 &lt;input class=&quot;button&quot; type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e( 'Add user' ) ?&gt;&quot; /&gt;&lt;/p&gt;
</span><span class="cx">         &lt;/form&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre>
</div>
</div>

</body>
</html>