From 4440711bfba5d68c0df71a31eb03b0bedc3cddb3 Mon Sep 17 00:00:00 2001 From: John James Jacoby Date: Tue, 2 Nov 2021 17:55:07 +0000 Subject: [PATCH] Application Passwords: display guiding text & link in `user-edit.php` when unavailable. This change intends to avoid confusion around the requirements of the Application Passwords feature, specific to it requiring HTTPS and the `WP_ENVIRONMENT_TYPE` constant. It does this by conditionally hiding the traditional UI and showing some insightful explanations instead, including a translatable link to the `WP_ENVIRONMENT_TYPE` documentation on the "Editing wp-config.php" support page. Props ashfame, audrasjb, iluy, johnbillion. Fixes #53658. git-svn-id: https://develop.svn.wordpress.org/trunk@51980 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/user-edit.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/user-edit.php b/src/wp-admin/user-edit.php index 30bc5c8e46..101ac5269c 100644 --- a/src/wp-admin/user-edit.php +++ b/src/wp-admin/user-edit.php @@ -733,11 +733,10 @@ endif; - -

+ display(); ?>
+ +

+

set the environment type accordingly to enable application passwords.' ), + __( 'https://wordpress.org/support/article/editing-wp-config-php/#wp_environment_type' ) + ); + ?>

+ -