Make WordPress Core

Ticket #15678: bulk_delete_plugin-display_fix.diff

File bulk_delete_plugin-display_fix.diff, 1.1 KB (added by flashingcursor, 15 years ago)

Itsy bitsy patch

  • wp-admin/plugins.php

     
    236236                                                foreach ( $plugin_info as $plugin ) {
    237237                                                        if ( $plugin['is_uninstallable'] ) {
    238238                                                                /* translators: 1: plugin name, 2: plugin author */
    239                                                                 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>';
     239                                                                echo '<li>', sprintf( __( '<strong>%1$s</strong> by <em>%2$s</em> (will also <strong>delete its data</strong>)' ), strip_tags($plugin['Name']), strip_tags($plugin['Author']) ), '</li>';
    240240                                                                $data_to_delete = true;
    241241                                                        } else {
    242242                                                                /* translators: 1: plugin name, 2: plugin author */
    243                                                                 echo '<li>', sprintf( __('<strong>%1$s</strong> by <em>%2$s</em>' ), esc_html($plugin['Name']), esc_html($plugin['Author']) ), '</li>';
     243                                                                echo '<li>', sprintf( __('<strong>%1$s</strong> by <em>%2$s</em>' ), strip_tags($plugin['Name']), strip_tags($plugin['Author']) ), '</li>';
    244244                                                        }
    245245                                                }
    246246                                                ?>