Make WordPress Core


Ignore:
Timestamp:
03/28/2018 12:17:26 AM (8 years ago)
Author:
pento
Message:

Dashboard: Remove the "Try Gutenberg" callout.

As eager as we all are to see Gutenberg put before a wider audience, there are still a handful of issues that need to be fixed, which won't be done before the 4.9.5 release.

Reverts [42869].
See #41316.

File:
1 edited

Legend:

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

    r42869 r42883  
    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.