From f69b9abfb04eede585a600609db299085fe123c6 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 19 Nov 2011 00:42:22 +0000 Subject: [PATCH] Welcome Screen: remove white space, make the second dismiss link work, see #11651 git-svn-id: https://develop.svn.wordpress.org/trunk@19345 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/dashboard.php | 205 ++++++++++---------------------- wp-admin/js/dashboard.dev.js | 2 +- wp-admin/js/dashboard.js | 2 +- wp-includes/script-loader.php | 2 +- 4 files changed, 69 insertions(+), 142 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 7f4b8cb4f3..7b17c5224b 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -1282,148 +1282,75 @@ function wp_welcome_panel() { list( $display_version ) = explode( '-', $wp_version ); ?>
+ + +
- +
+

+

First Steps with WordPress. If you’d rather dive right in, here are a few things most people do first when they set up a new WordPress site. If you need help, use the Help tabs in the upper right corner to get information on how to use your current screen and where to go for more assistance.' ); ?>

+
+
+

+

+
    +
  • Choose your privacy setting' ), esc_url( admin_url('options-privacy.php') ) ); ?>
  • +
  • Select your tagline and time zone' ), esc_url( admin_url('options-general.php') ) ); ?>
  • +
  • Turn comments on or off' ), esc_url( admin_url('options-discussion.php') ) ); ?>
  • +
  • Fill in your profile' ), esc_url( admin_url('profile.php') ) ); ?>
  • +
+
+
+

+

+
    +
  • sample page and post' ), esc_url( get_permalink( 2 ) ), esc_url( get_permalink( 1 ) ) ); ?>
  • +
  • sample page and post' ), esc_url( admin_url('edit.php?post_type=page') ), esc_url( admin_url('edit.php') ) ); ?>
  • +
  • Create an About Me page' ), esc_url( admin_url('edit.php?post_type=page') ) ); ?>
  • +
  • Write your first post' ), esc_url( admin_url('post-new.php') ) ); ?>
  • +
+
+
+

+ stylesheet_dir ) ) : + echo '

'; + printf( __( 'Install a theme to get started customizing your site.' ), esc_url( admin_url( 'themes.php' ) ) ); + echo '

'; + else: + echo '

'; + printf( __( 'Use the current theme — %1$s — or choose a new one. If you stick with %3$s, here are a few ways to make your site look unique.' ), $ct->title, esc_url( admin_url( 'themes.php' ) ), $ct->title ); + echo '

'; + ?> +
    + stylesheet ) : ?> +
  • Choose light or dark' ), esc_url( admin_url( 'themes.php?page=theme_options' ) ) ); ?>
  • + + if ( current_theme_supports( 'custom-background' ) ) : ?> +
  • Set a background color' ), esc_url( admin_url( 'themes.php?page=custom-background' ) ) ); ?>
  • +
- -
- -

-

First Steps with WordPress. If you’d rather dive right in, here are a few things most people do first when they set up a new WordPress site. If you need help, use the Help tabs in the upper right corner to get information on how to use your current screen and where to go for more assistance.' ); ?>

- -
-
-

- - -

-

-
    -
  • - Choose your privacy setting' ), - esc_url( admin_url('options-privacy.php') ) - ); ?> -
  • -
  • - Select your tagline and time zone' ), - esc_url( admin_url('options-general.php') ) - ); ?> -
  • -
  • - Turn comments on or off' ), - esc_url( admin_url('options-discussion.php') ) - ); ?> -
  • -
  • - Fill in your profile' ), - esc_url( admin_url('profile.php') ) - ); ?> -
  • -
-
-
-

- - -

-

-
    -
  • - sample page and post' ), - esc_url( get_permalink( 2 ) ), - esc_url( get_permalink( 1 ) ) - ); ?> -
  • -
  • - sample page and post' ), - esc_url( admin_url('edit.php?post_type=page') ), - esc_url( admin_url('edit.php') ) - ); ?> -
  • -
  • - Create an About Me page' ), - esc_url( admin_url('edit.php?post_type=page') ) - ); ?> -
  • -
  • - Write your first post' ), - esc_url( admin_url('post-new.php') ) - ); ?> -
  • -
-
-
-

- - -

- stylesheet_dir ) ) : - echo '

'; - printf( __( 'Install a theme to get started customizing your site.' ), esc_url( admin_url( 'themes.php' ) ) ); - echo '

'; - else: - echo '

'; - printf( __( 'Use the current theme — %1$s — or choose a new one. If you stick with %3$s, here are a few ways to make your site look unique.' ), $ct->title, esc_url( admin_url( 'themes.php' ) ), $ct->title ); - echo '

'; - ?> -
    - stylesheet ) : ?> -
  • - Choose light or dark' ), - esc_url( admin_url( 'themes.php?page=theme_options' ) ) - ); ?> -
  • - -
  • - Set a background color' ), - esc_url( admin_url( 'themes.php?page=custom-background' ) ) - ); ?> -
  • - -
  • - Select a new header image' ), - esc_url( admin_url( 'themes.php?page=custom-header' ) ) - ); ?> -
  • - -
  • - Add some widgets' ), - esc_url( admin_url( 'widgets.php' ) ) - ); ?> -
  • - -
- -
-
-

Dismiss this message.' ), '#' ) ?>

-
+ if ( current_theme_supports( 'custom-header' ) ) : ?> +
  • Select a new header image' ), esc_url( admin_url( 'themes.php?page=custom-header' ) ) ); ?>
  • + +
  • Add some widgets' ), esc_url( admin_url( 'widgets.php' ) ) ); ?>
  • + + + +
    +
    +

    Dismiss this message.' ); ?>

    +
    add( 'farbtastic', '/wp-admin/js/farbtastic.js', array('jquery'), '1.2' ); - $scripts->add( 'dashboard', "/wp-admin/js/dashboard$suffix.js", array( 'jquery', 'admin-comments', 'postbox' ), '20111103', 1 ); + $scripts->add( 'dashboard', "/wp-admin/js/dashboard$suffix.js", array( 'jquery', 'admin-comments', 'postbox' ), '20111118', 1 ); $scripts->add( 'hoverIntent', "/wp-includes/js/hoverIntent$suffix.js", array('jquery'), '20090102', 1 );