Make WordPress Core

Ticket #53658: 53658.3.diff

File 53658.3.diff, 1.2 KB (added by david.binda, 3 years ago)
  • src/wp-admin/user-edit.php

     
    733733
    734734        </table>
    735735
     736<?php if ( wp_is_application_passwords_available_for_user( $user_id ) || ( ! is_ssl() || 'local' === wp_get_environment_type() ) ) : ?>
    736737        <div class="application-passwords hide-if-no-js" id="application-passwords-section">
    737738                <h2><?php _e( 'Application Passwords' ); ?></h2>
    738739                <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>
     
    797798                        ?>
    798799                </div>
    799800                <?php else : ?>
    800                         <p><?php _e( 'The application password feature requires HTTPS, which is not enabled on this site.' ); ?></p>
     801                        <?php if ( ! is_ssl() ) : ?>
     802                                <p><?php _e( 'The application password feature requires HTTPS, which is not enabled on this site.' ); ?></p>
     803                        <?php endif; ?>
    801804                        <p>
    802805                                <?php
    803806                                printf(
     
    809812                        </p>
    810813                <?php endif; ?>
    811814        </div>
     815<?php endif; ?>
    812816
    813817                <?php
    814818                if ( IS_PROFILE_PAGE ) {