Make WordPress Core

Ticket #53658: patch_53658.diff

File patch_53658.diff, 1.4 KB (added by ashfame, 3 years ago)
  • src/wp-admin/user-edit.php

    diff --git a/src/wp-admin/user-edit.php b/src/wp-admin/user-edit.php
    index 0cd381caf2..d87da5c761 100644
    a b endif; 
    734734        </table>
    735735
    736736
    737                 <?php if ( wp_is_application_passwords_available_for_user( $user_id ) ) : ?>
    738737        <div class="application-passwords hide-if-no-js" id="application-passwords-section">
    739738                <h2><?php _e( 'Application Passwords' ); ?></h2>
     739                <?php if ( wp_is_application_passwords_available_for_user( $user_id ) ) : ?>
    740740                <p><?php _e( 'Application passwords allow authentication via non-interactive systems, such as XML-RPC or the REST API, without providing your actual password. Application passwords can be easily revoked. They cannot be used for traditional logins to your website.' ); ?></p>
    741741                        <?php
    742742                        if ( is_multisite() ) {
    endif; 
    797797                        $application_passwords_list_table->display();
    798798                        ?>
    799799                </div>
     800                <?php else: ?>
     801                        <p><?php printf( __( 'Application Passwords require <a href="%s" target="_blank">HTTPS on production websites</a>.' ), "https://wordpress.org/support/article/administration-over-ssl/" ); ?></p>
     802                        <p><?php printf( __( 'If this is a local website, you can set the <a href="%s" target="_blank">environment type</a> to make it functional.' ), "https://wordpress.org/support/article/editing-wp-config-php/#wp_environment_type" ); ?></p>
     803                <?php endif; ?>
    800804        </div>
    801 <?php endif; ?>
    802805
    803806                <?php
    804807                if ( IS_PROFILE_PAGE ) {