WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2018 11:03:20 AM (13 months ago)
Author:
pento
Message:

Dashboard: Remove the Try Gutenberg callout.

Block or block not. There is no try.

Props mukesh27.
See #45063.

File:
1 edited

Legend:

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

    r43777 r43807  
    10571057            }
    10581058
    1059             if ( 'dashboard' === $this->id && has_action( 'try_gutenberg_panel' ) ) {
    1060                 if ( isset( $_GET['try_gutenberg'] ) ) {
    1061                     $try_gutenberg_checked = empty( $_GET['try_gutenberg'] ) ? 0 : 1;
    1062                     update_user_meta( get_current_user_id(), 'show_try_gutenberg_panel', $try_gutenberg_checked );
    1063                 } else {
    1064                     $try_gutenberg_checked = get_user_meta( get_current_user_id(), 'show_try_gutenberg_panel', true );
    1065                     if ( '' === $try_gutenberg_checked ) {
    1066                         $try_gutenberg_checked = '1';
    1067                     }
    1068                     if ( '2' === $try_gutenberg_checked && wp_get_current_user()->user_email != get_option( 'admin_email' ) ) {
    1069                         $try_gutenberg_checked = false;
    1070                     }
    1071                 }
    1072                 echo '<label for="wp_try_gutenberg_panel-hide">';
    1073                 echo '<input type="checkbox" id="wp_try_gutenberg_panel-hide"' . checked( (bool) $try_gutenberg_checked, true, false ) . ' />';
    1074                 echo __( 'New Editor' ) . "</label>\n";
    1075             }
    10761059        ?>
    10771060        </fieldset>
Note: See TracChangeset for help on using the changeset viewer.