Make WordPress Core

Ticket #36430: 36430.3.diff

File 36430.3.diff, 4.3 KB (added by curdin, 8 years ago)

Adds spacing to link

  • src/wp-admin/css/forms.css

    diff --git src/wp-admin/css/forms.css src/wp-admin/css/forms.css
    index 8a1bf22..161d256 100644
    input[type="radio"].disabled:checked:before { 
    329329        line-height: 2;
    330330}
    331331
     332.wp-admin .button + .button-cancel {
     333        margin-left: 1em;
     334}
     335
    332336.meta-box-sortables select {
    333337        max-width: 100%;
    334338}
  • 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..3fad24f 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
    6464                if ( 'import' == $from ) {
    65                         $install_actions['importers_page'] = '<a href="' . admin_url( 'import.php' ) . '" target="_parent">' . __( 'Return to Importers' ) . '</a>';
     65                        $install_actions['importers_page'] = '<a class="button-cancel" href="' . admin_url( 'import.php' ) . '" target="_parent">' . __( 'Return to Importers' ) . '</a>';
    6666                } elseif ( $this->type == 'web' ) {
    67                         $install_actions['plugins_page'] = '<a href="' . self_admin_url( 'plugin-install.php' ) . '" target="_parent">' . __( 'Return to Plugin Installer' ) . '</a>';
     67                        $install_actions['plugins_page'] = '<a class="button-cancel" href="' . self_admin_url( 'plugin-install.php' ) . '" target="_parent">' . __( 'Return to Plugin Installer' ) . '</a>';
    6868                } elseif ( 'upload' == $this->type && 'plugins' == $from ) {
    69                         $install_actions['plugins_page'] = '<a href="' . self_admin_url( 'plugin-install.php' ) . '">' . __( 'Return to Plugin Installer' ) . '</a>';
     69                        $install_actions['plugins_page'] = '<a class="button-cancel" href="' . self_admin_url( 'plugin-install.php' ) . '">' . __( 'Return to Plugin Installer' ) . '</a>';
    7070                } else {
    71                         $install_actions['plugins_page'] = '<a href="' . self_admin_url( 'plugins.php' ) . '" target="_parent">' . __( 'Return to Plugins page' ) . '</a>';
     71                        $install_actions['plugins_page'] = '<a class="button-cancel" href="' . self_admin_url( 'plugins.php' ) . '" target="_parent">' . __( 'Return to Plugins page' ) . '</a>';
    7272                }
    7373
    7474                if ( ! $this->result || is_wp_error($this->result) ) {
    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}