WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/24/2017 02:21:42 PM (3 years ago)
Author:
azaozz
Message:

Retire Press This and extract it to a plugin. First run.

Props kraftbj, azaozz.
See #41689.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-plugin-installer-skin.php

    r41290 r41584  
    5050        $from = isset($_GET['from']) ? wp_unslash( $_GET['from'] ) : 'plugins';
    5151
    52         if ( 'import' == $from )
     52        if ( 'import' == $from ) {
    5353            $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>';
    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&amp;from=press-this&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ) . '" target="_parent">' . __( 'Activate Plugin &amp; Return to Press This' ) . '</a>';
     56        } else {
    5557            $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>';
     58        }
    5659
    5760        if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) {
Note: See TracChangeset for help on using the changeset viewer.