Make WordPress Core


Ignore:
Timestamp:
10/22/2019 07:17:59 PM (7 years ago)
Author:
desrosj
Message:

Help/About: Update the 5.3 About page for RC2.

This includes numerous improvements:

  • Removes the jazzer name.
  • Ensures WordPress is translatable for consistency with other occurrences in Core.
  • Changes all instances of Block Editor to block editor to match the spelling best practices.
  • Updates the PHP 7.4 compatibility section with more suitable text.
  • Introduction in credits.php, freedoms.php, and privacy.php have been updated to be consistent with the About page.
  • Fixes the aria-current attribute in tab navigation.

Reviewed by SergeyBiryukov, desrosj.
Props SergeyBiryukov, audrasjb, desrosj, ryelle, afercia.
See #47708.

File:
1 edited

Legend:

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

    r45932 r46572  
    1919<div class="wrap about-wrap full-width-layout">
    2020
    21 <h1>
    22         <?php
    23         printf(
    24                 /* translators: %s: The current WordPress version number. */
    25                 __( 'Welcome to WordPress&nbsp;%s' ),
    26                 $display_version
    27         );
    28         ?>
    29 </h1>
     21        <div class="about__header">
     22                <div class="about__header-title">
     23                        <h1>
     24                                <span><?php echo $display_version; ?></span>
     25                                <?php _e( 'WordPress' ); ?>
     26                        </h1>
     27                </div>
    3028
    31 <p class="about-text">
    32         <?php
    33         printf(
    34                 /* translators: %s: The current WordPress version number. */
    35                 __( 'Congratulations on updating to WordPress %s! This update makes it easier than ever to fix your site if something goes wrong.' ),
    36                 $display_version
    37         );
    38         ?>
    39 </p>
     29                <div class="about__header-badge wp-badge">
     30                        <?php
     31                        printf(
     32                                /* translators: %s: The current WordPress version number. */
     33                                __( 'Version %s' ),
     34                                $display_version
     35                        );
     36                        ?>
     37                </div>
    4038
    41 <div class="wp-badge">
    42         <?php
    43         printf(
    44                 /* translators: %s: The current WordPress version number. */
    45                 __( 'Version %s' ),
    46                 $display_version
    47         );
    48         ?>
    49 </div>
     39                <div class="about__header-text">
     40                        <p>
     41                                <?php
     42                                printf(
     43                                        /* translators: %s: The current WordPress version number. */
     44                                        __( 'Introducing our most refined user experience with the improved block editor in WordPress %s!' ),
     45                                        $display_version
     46                                );
     47                                ?>
     48                        </p>
     49                </div>
    5050
    51 <nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
    52         <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
    53         <a href="credits.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Credits' ); ?></a>
    54         <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
    55         <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
    56 </nav>
     51                <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
     52                        <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
     53                        <a href="credits.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Credits' ); ?></a>
     54                        <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
     55                        <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
     56                </nav>
     57        </div>
    5758
    58 <div class="about-wrap-content">
     59        <div class="about-wrap-content">
    5960<?php
    6061
    … …  
    138139
    139140?>
    140 </div>
     141        </div>
    141142</div>
    142143<?php
Note: See TracChangeset for help on using the changeset viewer.