<!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">                                         <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
</span><span class="cx">                                         <input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr( wp_get_referer() ); ?>" />
</span><span class="cx">                                         <?php wp_nonce_field( $_GET['action2'], '_wpnonce', false ); ?>
</span><del>-                                        <p><?php esc_html_e( stripslashes( $_GET['msg'] ) ); ?></p>
</del><ins>+                                        <p><?php echo esc_html( stripslashes( $_GET['msg'] ) ); ?></p>
</ins><span class="cx">                                         <p class="submit"><input class="button" type="submit" value="<?php _e( 'Confirm' ); ?>" /></p>
</span><span class="cx">                                 </form>
</span><span class="cx">                         </body>
</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">                                                         ?>
</span><span class="cx">                                                                 <tr class="form-field">
</span><del>-                                                                        <th scope="row"><?php esc_html_e( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></th>
</del><ins>+                                                                        <th scope="row"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></th>
</ins><span class="cx">                                                                         <?php if ( $is_main_site && in_array( $option->option_name, array( 'siteurl', 'home' ) ) ) { ?>
</span><del>-                                                                        <td><code><?php esc_html_e( $option->option_value ) ?></code></td>
</del><ins>+                                                                        <td><code><?php echo esc_html( $option->option_value ) ?></code></td>
</ins><span class="cx">                                                                         <?php } else { ?>
</span><span class="cx">                                                                         <td><input class="<?php echo $class; ?>" name="option[<?php echo esc_attr( $option->option_name ) ?>]" type="text" id="<?php echo esc_attr( $option->option_name ) ?>" value="<?php echo esc_attr( $option->option_value ) ?>" size="40" <?php disabled( $disabled ) ?> /></td>
</span><span class="cx">                                                                         <?php } ?>
</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"> <div class="wrap">
</span><span class="cx"> <?php screen_icon(); ?>
</span><del>-<h2><?php esc_html_e( $title ); ?></h2>
</del><ins>+<h2><?php echo esc_html( $title ); ?></h2>
</ins><span class="cx"> <form id="myblogs" action="" method="post">
</span><span class="cx">         <?php
</span><span class="cx">         choose_primary_blog();
</span></span></pre>
</div>
</div>
</body>
</html>