mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Plugins: style the primary action link in the non-js "Installing Plugin" page.
Props curdin, ericlewis, melchoyce, karmatosed. Fixes #36430. Built from https://develop.svn.wordpress.org/trunk@38617 git-svn-id: http://core.svn.wordpress.org/trunk@38560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
576bdf9f8c
commit
ea69657b59
@ -2817,6 +2817,11 @@ div.action-links {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* For non-js plugin installation screen ticket #36430. */
|
||||
.update-php .button.button-primary {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
@media screen and ( max-width: 771px ) {
|
||||
#plugin-information-title.with-banner {
|
||||
height: 100px;
|
||||
|
2
wp-admin/css/common-rtl.min.css
vendored
2
wp-admin/css/common-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -2817,6 +2817,11 @@ div.action-links {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* For non-js plugin installation screen ticket #36430. */
|
||||
.update-php .button.button-primary {
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
@media screen and ( max-width: 771px ) {
|
||||
#plugin-information-title.with-banner {
|
||||
height: 100px;
|
||||
|
2
wp-admin/css/common.min.css
vendored
2
wp-admin/css/common.min.css
vendored
File diff suppressed because one or more lines are too long
@ -52,12 +52,12 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
|
||||
$from = isset($_GET['from']) ? wp_unslash( $_GET['from'] ) : 'plugins';
|
||||
|
||||
if ( 'import' == $from )
|
||||
$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>';
|
||||
$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>';
|
||||
else
|
||||
$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>';
|
||||
$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>';
|
||||
|
||||
if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) {
|
||||
$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>';
|
||||
$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>';
|
||||
unset( $install_actions['activate_plugin'] );
|
||||
}
|
||||
|
||||
@ -90,7 +90,8 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
|
||||
*/
|
||||
$install_actions = apply_filters( 'install_plugin_complete_actions', $install_actions, $this->api, $plugin_file );
|
||||
|
||||
if ( ! empty($install_actions) )
|
||||
$this->feedback(implode(' | ', (array)$install_actions));
|
||||
if ( ! empty( $install_actions ) ) {
|
||||
$this->feedback( implode( ' ', (array) $install_actions ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38616';
|
||||
$wp_version = '4.7-alpha-38617';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user