From a641b9fb557dcc4ce317b9af6f07819ea930ddf9 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 17 Mar 2014 19:46:15 +0000 Subject: [PATCH] Cap and theme support checks for the welcome panel. props MikeHansenMe. fixes #26276. git-svn-id: https://develop.svn.wordpress.org/trunk@27563 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/dashboard.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 5b17c2a473..ebafa393ce 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -1164,8 +1164,21 @@ function wp_welcome_panel() {

', admin_url( 'widgets.php' ), admin_url( 'nav-menus.php' ) ); ?> + +
  • widgets or menus' ), + admin_url( 'widgets.php' ), admin_url( 'nav-menus.php' ) ); + } elseif ( current_theme_supports( 'widgets' ) ) { + echo '' . __( 'Manage widgets' ) . ''; + } else { + echo '' . __( 'Manage menus' ) . ''; + } + ?>
  • + +
  • ' . __( 'Turn comments on or off' ) . '', admin_url( 'options-discussion.php' ) ); ?>
  • +
  • ' . __( 'Learn more about getting started' ) . '', __( 'http://codex.wordpress.org/First_Steps_With_WordPress' ) ); ?>