From f93e6ec4e8fbb3ec4db5130ae2b783e6cb6fdecc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 24 May 2023 10:15:20 +0000 Subject: [PATCH] Help/About: Reverse the order of conditionals for displaying the "Go to Updates" link. `isset()` is faster than `current_user_can()`, so should be checked first. Includes updating code layout for better readability. Follow-up to [19442], [19524], [28477], [33466], [55848]. See #57839. Built from https://develop.svn.wordpress.org/trunk@55853 git-svn-id: http://core.svn.wordpress.org/trunk@55365 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/about.php | 19 +++++++++++++++---- wp-includes/version.php | 2 +- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/wp-admin/about.php b/wp-admin/about.php index 709670f9f0..2da21ab02f 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -279,10 +279,21 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
- - | - - + %2$s | ', + esc_url( self_admin_url( 'update-core.php' ) ), + is_multisite() ? __( 'Go to Updates' ) : __( 'Go to Dashboard → Updates' ) + ); + } + + printf( + '%2$s', + esc_url( self_admin_url() ), + is_blog_admin() ? __( 'Go to Dashboard → Home' ) : __( 'Go to Dashboard' ) + ); + ?>
diff --git a/wp-includes/version.php b/wp-includes/version.php index 85543dcc37..ae52e77d18 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55852'; +$wp_version = '6.3-alpha-55853'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.