Move welcome panel link to a 'Show on screen' checkbox. see #11651.

git-svn-id: https://develop.svn.wordpress.org/trunk@19014 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2011-10-19 21:43:21 +00:00
parent 5914353c06
commit 6c8c746dbc
5 changed files with 15 additions and 9 deletions

View File

@@ -799,7 +799,15 @@ final class WP_Screen {
if ( isset( $wp_meta_boxes[ $this->id ] ) ) : ?>
<h5><?php _ex('Show on screen', 'Metaboxes') ?></h5>
<div class="metabox-prefs">
<?php meta_box_prefs( $this ); ?>
<?php
meta_box_prefs( $this );
if ( 'dashboard' === $this->id && current_user_can( 'edit_theme_options' ) ) {
echo '<label for="wp_welcome_panel-hide">';
echo '<input type="checkbox" id="wp_welcome_panel-hide"' . checked( (bool) get_user_option( 'show_welcome_panel' ), true, false ) . ' />';
echo __( 'Welcome' ) . "</label>\n";
}
?>
<br class="clear" />
</div>
<?php endif;