Make WordPress Core


Ignore:
Timestamp:
03/27/2020 11:39:37 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Help/About: Improve accessibility of the 5.4 About page:

  • Remove vertical text and unnecessary italics.
  • Update H1 headings on About, Credits, Freedoms, Privacy pages to be unique to each page.

Props sabernhardt, ryelle, melchoyce, karmatosed, audrasjb, afercia, davidbaumwald, SergeyBiryukov.
See #49295.

File:
1 edited

Legend:

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

    r47475 r47521  
    2323        <div class="about__header">
    2424                <div class="about__header-title">
    25                         <h1>
     25                        <p>
    2626                                <?php _e( 'WordPress' ); ?>
    2727                                <span><?php echo $display_version; ?></span>
    28                         </h1>
     28                        </p>
    2929                </div>
    3030
     
    4343        </div>
    4444
    45         <div class="about__section">
     45        <div class="about__section is-feature">
    4646                <div class="column">
    47                         <h2><?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?></h2>
     47                        <h1><?php _e( 'Credits' ); ?></h1>
     48
     49                        <?php if ( ! $credits ) : ?>
    4850
    4951                        <p>
    5052                                <?php
    51                                 if ( ! $credits ) {
    52                                         printf(
    53                                                 /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
    54                                                 __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
    55                                                 __( 'https://wordpress.org/about/' ),
    56                                                 __( 'https://make.wordpress.org/' )
    57                                         );
    58                                 } else {
    59                                         printf(
    60                                                 /* translators: %s: https://make.wordpress.org/ */
    61                                                 __( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
    62                                                 __( 'https://make.wordpress.org/' )
    63                                         );
    64                                 }
     53                                printf(
     54                                        /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
     55                                        __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
     56                                        __( 'https://wordpress.org/about/' ),
     57                                        __( 'https://make.wordpress.org/' )
     58                                );
    6559                                ?>
    6660                        </p>
     61
     62                        <?php else : ?>
     63
     64                        <p>
     65                                <?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?>
     66                        </p>
     67                        <p>
     68                                <?php
     69                                printf(
     70                                        /* translators: %s: https://make.wordpress.org/ */
     71                                        __( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
     72                                        __( 'https://make.wordpress.org/' )
     73                                );
     74                                ?>
     75                        </p>
     76
     77                        <?php endif; ?>
    6778                </div>
    6879
Note: See TracChangeset for help on using the changeset viewer.