WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/26/2012 07:44:43 PM (9 years ago)
Author:
nacin
Message:

New design and content for the welcome panel. First pass.

props lessbloat, helenyhou, georgestephanis, sabreuse, ryelle.
see #21368.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/screen.php

    r21982 r22018  
    938938                    meta_box_prefs( $this );
    939939
    940                     if ( 'dashboard' === $this->id && current_user_can( 'edit_theme_options' ) ) {
     940                    if ( 'dashboard' === $this->id && has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) {
    941941                        if ( isset( $_GET['welcome'] ) ) {
    942942                            $welcome_checked = empty( $_GET['welcome'] ) ? 0 : 1;
Note: See TracChangeset for help on using the changeset viewer.