Make WordPress Core


Ignore:
Timestamp:
12/06/2010 08:49:54 PM (14 years ago)
Author:
nacin
Message:

Add AuthorName to get_plugins() and use it when deleting a plugin. fixes #15662.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r16696 r16757  
    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>)' ), esc_html($plugin['Name']), esc_html($plugin['AuthorName']) ), '</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>' ), esc_html($plugin['Name']), esc_html($plugin['AuthorName']) ), '</li>';
    244244                            }
    245245                        }
Note: See TracChangeset for help on using the changeset viewer.