Make WordPress Core

Ticket #36430: 36430.2.diff

File 36430.2.diff, 2.5 KB (added by curdin, 8 years ago)

Refreshed patch, removed pipe

  • src/wp-admin/includes/class-plugin-installer-skin.php

    diff --git src/wp-admin/includes/class-plugin-installer-skin.php src/wp-admin/includes/class-plugin-installer-skin.php
    index 34b2020..09dc1be 100644
    class Plugin_Installer_Skin extends WP_Upgrader_Skin { 
    5252                $from = isset($_GET['from']) ? wp_unslash( $_GET['from'] ) : 'plugins';
    5353
    5454                if ( 'import' == $from )
    55                         $install_actions['activate_plugin'] = '<a href="' . wp_nonce_url( 'plugins.php?action=activate&amp;from=import&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ) . '" target="_parent">' . __( 'Activate Plugin &amp; Run Importer' ) . '</a>';
     55                        $install_actions['activate_plugin'] = '<a class="button button-primary" href="' . wp_nonce_url( 'plugins.php?action=activate&amp;from=import&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ) . '" target="_parent">' . __( 'Activate Plugin &amp; Run Importer' ) . '</a>';
    5656                else
    57                         $install_actions['activate_plugin'] = '<a href="' . wp_nonce_url( 'plugins.php?action=activate&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ) . '" target="_parent">' . __( 'Activate Plugin' ) . '</a>';
     57                        $install_actions['activate_plugin'] = '<a class="button button-primary" href="' . wp_nonce_url( 'plugins.php?action=activate&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ) . '" target="_parent">' . __( 'Activate Plugin' ) . '</a>';
    5858
    5959                if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) {
    60                         $install_actions['network_activate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=activate&amp;networkwide=1&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ) . '" target="_parent">' . __( 'Network Activate' ) . '</a>';
     60                        $install_actions['network_activate'] = '<a class="button button-primary" href="' . wp_nonce_url( 'plugins.php?action=activate&amp;networkwide=1&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ) . '" target="_parent">' . __( 'Network Activate' ) . '</a>';
    6161                        unset( $install_actions['activate_plugin'] );
    6262                }
    6363
    class Plugin_Installer_Skin extends WP_Upgrader_Skin { 
    9191                $install_actions = apply_filters( 'install_plugin_complete_actions', $install_actions, $this->api, $plugin_file );
    9292
    9393                if ( ! empty($install_actions) )
    94                         $this->feedback(implode(' | ', (array)$install_actions));
     94                        $this->feedback(implode(' ', (array)$install_actions));
    9595        }
    9696}