Make WordPress Core


Ignore:
Timestamp:
07/18/2018 06:41:07 AM (7 years ago)
Author:
pento
Message:

Dashboard: Introduce the "Try Gutenberg" callout.

To encourage folks to prepare for Gutenberg, this new Dashboard box allows site users to easily install and try the Gutenberg plugin now, or to install the Classic Editor plugin before WordPress 5.0 is released.

Props pento, melchoyce, joen, karmatosed, joemcgill, SergeyBiryukov, jorbin, bph, Clorith, afercia, chanthaboune, chrislema, kjellr, matveb, michelleweber.
Fixes #41316.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9/src/wp-admin/plugins.php

    r42883 r43502  
    6666            } else if ( isset($_GET['from']) && 'press-this' == $_GET['from'] ) {
    6767                wp_redirect( self_admin_url( "press-this.php") );
     68            } else if ( isset( $_GET['from'] ) && 'try-gutenberg' == $_GET['from'] ) {
     69                if ( 'gutenberg/gutenberg.php' === $plugin ) {
     70                    wp_redirect( self_admin_url( "admin.php?page=gutenberg" ) );
     71                } else {
     72                    wp_redirect( self_admin_url() );
     73                }
    6874            } else {
    6975                wp_redirect( self_admin_url("plugins.php?activate=true&plugin_status=$status&paged=$page&s=$s") ); // overrides the ?error=true one above
Note: See TracChangeset for help on using the changeset viewer.