Changeset 38617
- Timestamp:
- 09/17/2016 04:22:03 PM (8 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/common.css
r38616 r38617 2818 2818 } 2819 2819 2820 /* For non-js plugin installation screen ticket #36430. */ 2821 .update-php .button.button-primary { 2822 margin-right: 1em; 2823 } 2824 2820 2825 @media screen and ( max-width: 771px ) { 2821 2826 #plugin-information-title.with-banner { -
trunk/src/wp-admin/includes/class-plugin-installer-skin.php
r38023 r38617 53 53 54 54 if ( 'import' == $from ) 55 $install_actions['activate_plugin'] = '<a href="' . wp_nonce_url( 'plugins.php?action=activate&from=import&plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ) . '" target="_parent">' . __( 'Activate Plugin & Run Importer' ) . '</a>';55 $install_actions['activate_plugin'] = '<a class="button button-primary" href="' . wp_nonce_url( 'plugins.php?action=activate&from=import&plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ) . '" target="_parent">' . __( 'Activate Plugin & Run Importer' ) . '</a>'; 56 56 else 57 $install_actions['activate_plugin'] = '<a href="' . wp_nonce_url( 'plugins.php?action=activate&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&plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ) . '" target="_parent">' . __( 'Activate Plugin' ) . '</a>'; 58 58 59 59 if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) { 60 $install_actions['network_activate'] = '<a href="' . wp_nonce_url( 'plugins.php?action=activate&networkwide=1&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&networkwide=1&plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ) . '" target="_parent">' . __( 'Network Activate' ) . '</a>'; 61 61 unset( $install_actions['activate_plugin'] ); 62 62 } … … 91 91 $install_actions = apply_filters( 'install_plugin_complete_actions', $install_actions, $this->api, $plugin_file ); 92 92 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 } 95 96 } 96 97 }
Note: See TracChangeset
for help on using the changeset viewer.