Skip to content

Commit

Permalink
Coding Standards: Fix some WPCS errors and warnings in `wp-admin/user…
Browse files Browse the repository at this point in the history
…-edit.php`:

* Add missing translators comment.
* Add missing space, correct indentation.
* Put opening and closing PHP tag on a line by itself.
* Remove unnecessary escaping for consistency with other strings.

Follow-up to [51980].

See #53658.

git-svn-id: https://develop.svn.wordpress.org/trunk@51988 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Nov 2, 2021
1 parent 9007b1d commit 3e2ec6c
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/wp-admin/user-edit.php
Expand Up @@ -796,14 +796,17 @@
$application_passwords_list_table->display();
?>
</div>
<?php else: ?>
<p><?php esc_html_e( 'The application password feature requires HTTPS, which is not enabled on this site.' ); ?></p>
<p><?php
printf(
__( 'If this is a development website you can <a href="%s" target="_blank">set the environment type accordingly</a> to enable application passwords.' ),
__( 'https://wordpress.org/support/article/editing-wp-config-php/#wp_environment_type' )
);
?></p>
<?php else : ?>
<p><?php _e( 'The application password feature requires HTTPS, which is not enabled on this site.' ); ?></p>
<p>
<?php
printf(
/* translators: %s: Documentation URL. */
__( 'If this is a development website you can <a href="%s" target="_blank">set the environment type accordingly</a> to enable application passwords.' ),
__( 'https://wordpress.org/support/article/editing-wp-config-php/#wp_environment_type' )
);
?>
</p>
<?php endif; ?>
</div>

Expand Down

0 comments on commit 3e2ec6c

Please sign in to comment.