Make WordPress Core

Changeset 38617

Timestamp:
09/17/2016 04:22:03 PM (8 years ago)
Author:
afercia
Message:

Plugins: style the primary action link in the non-js "Installing Plugin" page.

Props curdin, ericlewis, melchoyce, karmatosed.
Fixes #36430.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r38616 r38617  
    28182818}
    28192819
     2820
     2821
     2822
     2823
     2824
    28202825@media screen and ( max-width: 771px ) {
    28212826    #plugin-information-title.with-banner {
  • trunk/src/wp-admin/includes/class-plugin-installer-skin.php

    r38023 r38617  
    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 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 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 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        }
    ��  
    9191        $install_actions = apply_filters( 'install_plugin_complete_actions', $install_actions, $this->api, $plugin_file );
    9292
    93         if ( ! empty($install_actions) )
    94             $this->feedback(implode(' | ', (array)$install_actions));
     93        if ( ! empty( $install_actions ) ) {
     94            $this->feedback( implode( ' ', (array) $install_actions ) );
     95        }
    9596    }
    9697}
Note: See TracChangeset for help on using the changeset viewer.