<!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>[14720] trunk/wp-admin: Use echo esc_html, not esc_html_e,
  which also translates.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/14720">14720</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-05-18 04:58:18 +0000 (Tue, 18 May 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Use echo esc_html, not esc_html_e, which also translates.</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="#trunkwpadminmysitesphp">trunk/wp-admin/my-sites.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 (14719 => 14720)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-edit.php        2010-05-18 04:41:08 UTC (rev 14719)
+++ trunk/wp-admin/ms-edit.php        2010-05-18 04:58:18 UTC (rev 14720)
</span><span class="lines">@@ -472,7 +472,7 @@
</span><span class="cx">                                         &lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;&lt;?php echo esc_attr( $id ); ?&gt;&quot; /&gt;
</span><span class="cx">                                         &lt;input type=&quot;hidden&quot; name=&quot;_wp_http_referer&quot; value=&quot;&lt;?php echo esc_attr( wp_get_referer() ); ?&gt;&quot; /&gt;
</span><span class="cx">                                         &lt;?php wp_nonce_field( $_GET['action2'], '_wpnonce', false ); ?&gt;
</span><del>-                                        &lt;p&gt;&lt;?php esc_html_e( stripslashes( $_GET['msg'] ) ); ?&gt;&lt;/p&gt;
</del><ins>+                                        &lt;p&gt;&lt;?php echo esc_html( stripslashes( $_GET['msg'] ) ); ?&gt;&lt;/p&gt;
</ins><span class="cx">                                         &lt;p class=&quot;submit&quot;&gt;&lt;input class=&quot;button&quot; type=&quot;submit&quot; value=&quot;&lt;?php _e( 'Confirm' ); ?&gt;&quot; /&gt;&lt;/p&gt;
</span><span class="cx">                                 &lt;/form&gt;
</span><span class="cx">                         &lt;/body&gt;
</span></span></pre></div>
<a id="trunkwpadminmssitesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-sites.php (14719 => 14720)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-sites.php        2010-05-18 04:41:08 UTC (rev 14719)
+++ trunk/wp-admin/ms-sites.php        2010-05-18 04:58:18 UTC (rev 14720)
</span><span class="lines">@@ -175,9 +175,9 @@
</span><span class="cx">                                                         } else {
</span><span class="cx">                                                         ?&gt;
</span><span class="cx">                                                                 &lt;tr class=&quot;form-field&quot;&gt;
</span><del>-                                                                        &lt;th scope=&quot;row&quot;&gt;&lt;?php esc_html_e( ucwords( str_replace( &quot;_&quot;, &quot; &quot;, $option-&gt;option_name ) ) ); ?&gt;&lt;/th&gt;
</del><ins>+                                                                        &lt;th scope=&quot;row&quot;&gt;&lt;?php echo esc_html( ucwords( str_replace( &quot;_&quot;, &quot; &quot;, $option-&gt;option_name ) ) ); ?&gt;&lt;/th&gt;
</ins><span class="cx">                                                                         &lt;?php if ( $is_main_site &amp;&amp; in_array( $option-&gt;option_name, array( 'siteurl', 'home' ) ) ) { ?&gt;
</span><del>-                                                                        &lt;td&gt;&lt;code&gt;&lt;?php esc_html_e( $option-&gt;option_value ) ?&gt;&lt;/code&gt;&lt;/td&gt;
</del><ins>+                                                                        &lt;td&gt;&lt;code&gt;&lt;?php echo esc_html( $option-&gt;option_value ) ?&gt;&lt;/code&gt;&lt;/td&gt;
</ins><span class="cx">                                                                         &lt;?php } else { ?&gt;
</span><span class="cx">                                                                         &lt;td&gt;&lt;input class=&quot;&lt;?php echo $class; ?&gt;&quot; name=&quot;option[&lt;?php echo esc_attr( $option-&gt;option_name ) ?&gt;]&quot; type=&quot;text&quot; id=&quot;&lt;?php echo esc_attr( $option-&gt;option_name ) ?&gt;&quot; value=&quot;&lt;?php echo esc_attr( $option-&gt;option_value ) ?&gt;&quot; size=&quot;40&quot; &lt;?php disabled( $disabled ) ?&gt; /&gt;&lt;/td&gt;
</span><span class="cx">                                                                         &lt;?php } ?&gt;
</span></span></pre></div>
<a id="trunkwpadminmysitesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/my-sites.php (14719 => 14720)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/my-sites.php        2010-05-18 04:41:08 UTC (rev 14719)
+++ trunk/wp-admin/my-sites.php        2010-05-18 04:58:18 UTC (rev 14720)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;wrap&quot;&gt;
</span><span class="cx"> &lt;?php screen_icon(); ?&gt;
</span><del>-&lt;h2&gt;&lt;?php esc_html_e( $title ); ?&gt;&lt;/h2&gt;
</del><ins>+&lt;h2&gt;&lt;?php echo esc_html( $title ); ?&gt;&lt;/h2&gt;
</ins><span class="cx"> &lt;form id=&quot;myblogs&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
</span><span class="cx">         &lt;?php
</span><span class="cx">         choose_primary_blog();
</span></span></pre>
</div>
</div>

</body>
</html>