Make WordPress Core


Ignore:
Timestamp:
10/23/2017 08:47:27 PM (9 years ago)
Author:
jorbin
Message:

Dashboard: Remove "Try Gutenberg" callout.

Reverting this for 4.9. It will be added back in a future version of WordPress. This doesn't mean that you shouldn't be trying Gutenberg, just that it isn't ready for a call out to a larger audience. But if you are the type to read commit messages, ​https://github.com/WordPress/gutenberg could use your pull requests and comments on issues.

Reverts [41931] [41900] [41896] [41895]
See #41316

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-screen.php

    r41895 r41978  
    10211021                                } else {
    10221022                                        $welcome_checked = get_user_meta( get_current_user_id(), 'show_welcome_panel', true );
    1023                                         if ( '' === $welcome_checked ) {
    1024                                                 $welcome_checked = '1';
    1025                                         }
    1026                                         if ( '2' === $welcome_checked && wp_get_current_user()->user_email != get_option( 'admin_email' ) ) {
     1023                                        if ( 2 == $welcome_checked && wp_get_current_user()->user_email != get_option( 'admin_email' ) ) {
    10271024                                                $welcome_checked = false;
    10281025                                        }
    … …  
    10311028                                echo '<input type="checkbox" id="wp_welcome_panel-hide"' . checked( (bool) $welcome_checked, true, false ) . ' />';
    10321029                                echo _x( 'Welcome', 'Welcome panel' ) . "</label>\n";
    1033                         }
    1034 
    1035                         if ( 'dashboard' === $this->id && has_action( 'try_gutenberg_panel' ) ) {
    1036                                 if ( isset( $_GET['try_gutenberg'] ) ) {
    1037                                         $try_gutenberg_checked = empty( $_GET['try_gutenberg'] ) ? 0 : 1;
    1038                                         update_user_meta( get_current_user_id(), 'show_try_gutenberg_panel', $try_gutenberg_checked );
    1039                                 } else {
    1040                                         $try_gutenberg_checked = get_user_meta( get_current_user_id(), 'show_try_gutenberg_panel', true );
    1041                                         if ( '' === $try_gutenberg_checked ) {
    1042                                                 $try_gutenberg_checked = '1';
    1043                                         }
    1044                                         if ( '2' === $try_gutenberg_checked && wp_get_current_user()->user_email != get_option( 'admin_email' ) ) {
    1045                                                 $try_gutenberg_checked = false;
    1046                                         }
    1047                                 }
    1048                                 echo '<label for="wp_try_gutenberg_panel-hide">';
    1049                                 echo '<input type="checkbox" id="wp_try_gutenberg_panel-hide"' . checked( (bool) $try_gutenberg_checked, true, false ) . ' />';
    1050                                 echo __( 'New Editor' ) . "</label>\n";
    10511030                        }
    10521031                ?>
Note: See TracChangeset for help on using the changeset viewer.