From 609c0db6684374de76bc848f99765ddc42a7045a Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 13 Nov 2017 22:45:11 +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. Built from https://develop.svn.wordpress.org/trunk@42169 git-svn-id: http://core.svn.wordpress.org/trunk@41999 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 89047bab98..fa1d2ffad4 100644 --- a/wp-admin/includes/dashboard.php +++ b/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 ); ?>

diff --git a/wp-includes/version.php b/wp-includes/version.php index be619fcd01..8034492b3c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42165'; +$wp_version = '5.0-alpha-42169'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.