Changeset 44106 for branches/4.9/src/wp-admin/includes/class-wp-screen.php
- Timestamp:
- 12/13/2018 09:06:20 AM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/branches/5.0 merged: 43807
- Property svn:mergeinfo changed
-
branches/4.9/src/wp-admin/includes/class-wp-screen.php
r44051 r44106 1035 1035 } 1036 1036 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 }1054 1037 ?> 1055 1038 </fieldset>
Note: See TracChangeset
for help on using the changeset viewer.