- Timestamp:
- 09/24/2017 02:21:42 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-plugin-installer-skin.php
r41290 r41584 50 50 $from = isset($_GET['from']) ? wp_unslash( $_GET['from'] ) : 'plugins'; 51 51 52 if ( 'import' == $from ) 52 if ( 'import' == $from ) { 53 53 $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>'; 54 else 54 } else if ( 'press-this' == $from ) { 55 $install_actions['activate_plugin'] = '<a class="button button-primary" href="' . wp_nonce_url( 'plugins.php?action=activate&from=press-this&plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ) . '" target="_parent">' . __( 'Activate Plugin & Return to Press This' ) . '</a>'; 56 } else { 55 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 } 56 59 57 60 if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.