From 33f7cfd2b9937189d1a02a7e1f9e27be5e864f1d Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 13 Nov 2017 19:24:49 +0000 Subject: [PATCH] Customize: Prevent PHP notice on theme-switch dashboard welcome link (and link to themes admin screen) when user cannot `customize`. Props skostadinov, ocean90. Amends [41699]. See #42050. Fixes #42525. git-svn-id: https://develop.svn.wordpress.org/trunk@42169 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/dashboard.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 89047bab98..fa1d2ffad4 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -1567,14 +1567,14 @@ function wp_welcome_panel() {

- +

true ) ) ) > 1 ) ) : ?> -

change your theme completely' ), $customize_themes_link ); ?>

+ +

change your theme completely' ), $themes_link ); ?>