]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/plugins.php
Wordpress 3.0.6
[autoinstalls/wordpress.git] / wp-admin / plugins.php
index bed5d5f6dff51a795d3a621447ef8d813438bb26..8ea2d8e6a05fcaf12121c30c8922b55442d2179c 100644 (file)
@@ -255,11 +255,11 @@ if ( !empty($action) ) {
                                                foreach ( $plugin_info as $plugin ) {
                                                        if ( $plugin['is_uninstallable'] ) {
                                                                /* 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;
                                                        } else {
                                                                /* 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>';
                                                        }
                                                }
                                                ?>
@@ -289,7 +289,7 @@ if ( !empty($action) ) {
                                        <ul class="code">
                                        <?php
                                                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>
                                </div>