Use echo esc_html, not esc_html_e, which also translates.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-18 04:58:18 +00:00
parent d58032d584
commit 31b71cd5c0
3 changed files with 4 additions and 4 deletions

View File

@ -472,7 +472,7 @@ switch ( $_GET['action'] ) {
<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" /> <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
<input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr( wp_get_referer() ); ?>" /> <input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr( wp_get_referer() ); ?>" />
<?php wp_nonce_field( $_GET['action2'], '_wpnonce', false ); ?> <?php wp_nonce_field( $_GET['action2'], '_wpnonce', false ); ?>
<p><?php esc_html_e( stripslashes( $_GET['msg'] ) ); ?></p> <p><?php echo esc_html( stripslashes( $_GET['msg'] ) ); ?></p>
<p class="submit"><input class="button" type="submit" value="<?php _e( 'Confirm' ); ?>" /></p> <p class="submit"><input class="button" type="submit" value="<?php _e( 'Confirm' ); ?>" /></p>
</form> </form>
</body> </body>

View File

@ -175,9 +175,9 @@ switch ( $action ) {
} else { } else {
?> ?>
<tr class="form-field"> <tr class="form-field">
<th scope="row"><?php esc_html_e( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></th> <th scope="row"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></th>
<?php if ( $is_main_site && in_array( $option->option_name, array( 'siteurl', 'home' ) ) ) { ?> <?php if ( $is_main_site && in_array( $option->option_name, array( 'siteurl', 'home' ) ) ) { ?>
<td><code><?php esc_html_e( $option->option_value ) ?></code></td> <td><code><?php echo esc_html( $option->option_value ) ?></code></td>
<?php } else { ?> <?php } else { ?>
<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> <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>
<?php } ?> <?php } ?>

View File

@ -45,7 +45,7 @@ if ( $updated ) { ?>
<div class="wrap"> <div class="wrap">
<?php screen_icon(); ?> <?php screen_icon(); ?>
<h2><?php esc_html_e( $title ); ?></h2> <h2><?php echo esc_html( $title ); ?></h2>
<form id="myblogs" action="" method="post"> <form id="myblogs" action="" method="post">
<?php <?php
choose_primary_blog(); choose_primary_blog();