Make WordPress Core


Ignore:
Timestamp:
11/30/2018 04:22:46 PM (6 years ago)
Author:
melchoyce
Message:

Help/About: Fix the user's saved WordPress.org username from being changed to wordpressdotorg when they click the About page link to install the Classic Editor plugin.

Props pento.
See #45178.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-admin/about.php

    r43947 r43952  
    336336                    <?php if ( current_user_can( 'install_plugins' ) ) { ?>
    337337                        <div class="col cta">
    338                             <a class="button button-primary button-hero" href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'plugin-install.php?tab=favorites&user=wordpressdotorg' ), 'save_wporg_username_' . get_current_user_id() ) ); ?>"><?php _e( 'Install the Classic Editor' ); ?></a>
     338                            <a class="button button-primary button-hero" href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'plugin-install.php?tab=favorites&user=wordpressdotorg&save=0' ), 'save_wporg_username_' . get_current_user_id() ) ); ?>"><?php _e( 'Install the Classic Editor' ); ?></a>
    339339                        </div>
    340340                    <?php } ?>
Note: See TracChangeset for help on using the changeset viewer.