Some escaping

git-svn-id: https://develop.svn.wordpress.org/trunk@15521 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-08-23 13:25:51 +00:00
parent 11c84be979
commit 2ad9bf2abe
1 changed files with 3 additions and 3 deletions

View File

@ -238,11 +238,11 @@ if ( !empty($action) ) {
foreach ( $plugin_info as $plugin ) { foreach ( $plugin_info as $plugin ) {
if ( $plugin['is_uninstallable'] ) { if ( $plugin['is_uninstallable'] ) {
/* translators: 1: plugin name, 2: plugin author */ /* translators: 1: plugin name, 2: plugin author */
echo '<li>', sprintf( __( '<strong>%1$s</strong> by <em>%2$s</em> (will also <strong>delete its data</strong>)' ), $plugin['Name'], $plugin['Author'] ), '</li>'; echo '<li>', sprintf( __( '<strong>%1$s</strong> by <em>%2$s</em> (will also <strong>delete its data</strong>)' ), esc_html($plugin['Name']), esc_html($plugin['Author']) ), '</li>';
$data_to_delete = true; $data_to_delete = true;
} else { } else {
/* translators: 1: plugin name, 2: plugin author */ /* translators: 1: plugin name, 2: plugin author */
echo '<li>', sprintf( __('<strong>%1$s</strong> by <em>%2$s</em>' ), $plugin['Name'], $plugin['Author'] ), '</li>'; echo '<li>', sprintf( __('<strong>%1$s</strong> by <em>%2$s</em>' ), esc_html($plugin['Name']), esc_html($plugin['Author']) ), '</li>';
} }
} }
?> ?>
@ -272,7 +272,7 @@ if ( !empty($action) ) {
<ul class="code"> <ul class="code">
<?php <?php
foreach ( (array)$files_to_delete as $file ) foreach ( (array)$files_to_delete as $file )
echo '<li>' . str_replace(WP_PLUGIN_DIR, '', $file) . '</li>'; echo '<li>' . esc_html(str_replace(WP_PLUGIN_DIR, '', $file)) . '</li>';
?> ?>
</ul> </ul>
</div> </div>