Make WordPress Core


Ignore:
Timestamp:
12/13/2018 09:06:20 AM (6 years ago)
Author:
pento
Message:

Dashboard: Remove the Try Gutenberg callout.

Merge of [43807] from the 5.0 branch.

Props mukesh27.
Fixes #45063.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

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

    r44051 r44106  
    10351035            }
    10361036
    1037             if ( 'dashboard' === $this->id && has_action( 'try_gutenberg_panel' ) ) {
    1038                 if ( isset( $_GET['try_gutenberg'] ) ) {
    1039                     $try_gutenberg_checked = empty( $_GET['try_gutenberg'] ) ? 0 : 1;
    1040                     update_user_meta( get_current_user_id(), 'show_try_gutenberg_panel', $try_gutenberg_checked );
    1041                 } else {
    1042                     $try_gutenberg_checked = get_user_meta( get_current_user_id(), 'show_try_gutenberg_panel', true );
    1043                     if ( '' === $try_gutenberg_checked ) {
    1044                         $try_gutenberg_checked = '1';
    1045                     }
    1046                     if ( '2' === $try_gutenberg_checked && wp_get_current_user()->user_email != get_option( 'admin_email' ) ) {
    1047                         $try_gutenberg_checked = false;
    1048                     }
    1049                 }
    1050                 echo '<label for="wp_try_gutenberg_panel-hide">';
    1051                 echo '<input type="checkbox" id="wp_try_gutenberg_panel-hide"' . checked( (bool) $try_gutenberg_checked, true, false ) . ' />';
    1052                 echo __( 'New Editor' ) . "</label>\n";
    1053             }
    10541037        ?>
    10551038        </fieldset>
Note: See TracChangeset for help on using the changeset viewer.