From fae48afc92dd5e451f2d5cbf82fd52cd3ce117b5 Mon Sep 17 00:00:00 2001 From: johnjamesjacoby Date: Tue, 2 Nov 2021 17:57:03 +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. Built from https://develop.svn.wordpress.org/trunk@51980 git-svn-id: http://core.svn.wordpress.org/trunk@51569 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/user-edit.php | 13 ++++++++++--- wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 30bc5c8e46..101ac5269c 100644 --- a/wp-admin/user-edit.php +++ b/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' ) + ); + ?>

+ -