Make WordPress Core


Ignore:
Timestamp:
11/02/2021 08:18:09 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Fix some WPCS errors and warnings in wp-admin/user-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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r51980 r51988  
    797797                        ?>
    798798                </div>
    799                 <?php else: ?>
    800                         <p><?php esc_html_e( 'The application password feature requires HTTPS, which is not enabled on this site.' ); ?></p>
    801                         <p><?php
    802                         printf(
    803                                 __( 'If this is a development website you can <a href="%s" target="_blank">set the environment type accordingly</a> to enable application passwords.' ),
    804                                 __( 'https://wordpress.org/support/article/editing-wp-config-php/#wp_environment_type' )
    805                         );
    806                         ?></p>
     799                <?php else : ?>
     800                        <p><?php _e( 'The application password feature requires HTTPS, which is not enabled on this site.' ); ?></p>
     801                        <p>
     802                                <?php
     803                                printf(
     804                                        /* translators: %s: Documentation URL. */
     805                                        __( 'If this is a development website you can <a href="%s" target="_blank">set the environment type accordingly</a> to enable application passwords.' ),
     806                                        __( 'https://wordpress.org/support/article/editing-wp-config-php/#wp_environment_type' )
     807                                );
     808                                ?>
     809                        </p>
    807810                <?php endif; ?>
    808811        </div>
Note: See TracChangeset for help on using the changeset viewer.