Make WordPress Core

Ticket #47708: 47708.1.diff

File 47708.1.diff, 16.4 KB (added by audrasjb, 5 years ago)

Fix $versionn_label variable

  • src/wp-admin/about.php

    diff --git a/src/wp-admin/about.php b/src/wp-admin/about.php
    index f5d86a9892..509eefc536 100644
    a b $title = _x( 'About', 'page title' ); 
    1414
    1515list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
    1616
     17$version_label = sprintf(
     18        /* translators: The current WordPress version number */
     19        __( 'WordPress %s' ),
     20        '5.3'
     21);
     22
    1723include( ABSPATH . 'wp-admin/admin-header.php' );
    1824?>
    1925        <div class="wrap about-wrap full-width-layout">
    20                 <h1>
    21                         <?php
    22                         printf(
    23                                 /* translators: %s: The current WordPress version number. */
    24                                 __( 'Welcome to WordPress&nbsp;%s' ),
    25                                 $display_version
    26                         );
    27                         ?>
    28                 </h1>
    29 
    30                 <p class="about-text">
    31                         <?php
    32                         printf(
    33                                 /* translators: %s: The current WordPress version number. */
    34                                 __( 'Congratulations on updating to WordPress %s! This update makes it easier than ever to fix your site if something goes wrong.' ),
    35                                 $display_version
    36                         );
    37                         ?>
    38                 </p>
    39 
    40                 <div class="wp-badge">
    41                         <?php
    42                         printf(
    43                                 /* translators: %s: The current WordPress version number. */
    44                                 __( 'Version %s' ),
    45                                 $display_version
    46                         );
    47                         ?>
    48                 </div>
    49 
    50                 <nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
    51                         <a href="about.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'What&#8217;s New' ); ?></a>
    52                         <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
    53                         <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
    54                         <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
    55                 </nav>
    56 
    57                 <div class="headline-feature">
    58                         <h2><?php _e( 'Keeping Your Site Safe' ); ?></h2>
    59                         <p class="lead-description"><?php _e( 'WordPress 5.2 gives you even more robust tools for identifying and fixing configuration issues and fatal errors. Whether you are a developer helping clients or you manage your site solo, these tools can help get you the right information when you need it.' ); ?></p>
    60                         <div class="inline-svg aligncenter">
    61                                 <img src="https://s.w.org/images/core/5.2/about_maintain-wordpress-v2.svg" alt="">
     26                <div class="about__header">
     27                        <div class="about__header-title">
     28                                <h1 aria-label="<?php echo $version_label; ?>">
     29                                        <span><?php echo $display_version; ?></span>
     30                                        WordPress <?php /* @todo Does this need translation? */ ?>
     31                                </h1>
    6232                        </div>
    63                 </div>
    6433
    65                 <hr />
     34                        <div class="about__header-badge wp-badge">
     35                                <?php
     36                                printf(
     37                                        /* translators: %s: The current WordPress version number. */
     38                                        __( 'Version %s' ),
     39                                        $display_version
     40                                );
     41                                ?>
     42                        </div>
    6643
    67                 <div class="feature-section is-wide has-2-columns is-wider-left">
    68                         <div class="column is-vertically-aligned-center">
    69                                 <h3><?php _e( 'Site Health Check' ); ?></h3>
     44                        <div class="about__header-text">
    7045                                <p>
    7146                                        <?php
    7247                                        printf(
    73                                                 /* translators: 1: Link to the WordPress 5.1 release post. */
    74                                                 __( 'Building on <a href="%1$s">the Site Health features introduced in 5.1</a>, this release adds two new pages to help debug common configuration issues. It also adds space where developers can include debugging information for site maintainers.' ),
    75                                                 __( 'https://wordpress.org/news/2019/02/betty/' )
     48                                                /* translators: %s: The current WordPress version number. */
     49                                                __( 'Introducing our most refined user experience with the improved Block Editor in WordPress %s &#147;Name&#148;!' ),
     50                                                $display_version
    7651                                        );
    77 
    78                                         if ( current_user_can( 'install_plugins' ) ) {
    79                                                 printf(
    80                                                         /* translators: 1: URL to Site Health Status screen, 2: URL to Site Health Info screen. */
    81                                                         __( ' <a href="%1$s">Check your site status</a>, and <a href="%2$s">learn how to debug issues</a>.' ),
    82                                                         admin_url( 'site-health.php' ),
    83                                                         admin_url( 'site-health.php?tab=debug' )
    84                                                 );
    85                                         }
    8652                                        ?>
    8753                                </p>
    8854                        </div>
    89                         <div class="column">
    90                                 <div class="inline-svg aligncenter">
    91                                         <img src="https://s.w.org/images/core/5.2/about_site-health.svg" alt="">
    92                                 </div>
    93                         </div>
     55
     56                        <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
     57                                <a href="about.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'What&#8217;s New' ); ?></a>
     58                                <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
     59                                <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
     60                                <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
     61                        </nav>
     62                </div>
     63
     64                <div class="about__section is-feature">
     65                        <p>
     66                                <?php _e( '5.3 expands and refines the block editor introduced in WordPress 5.0 with new blocks, more intuitive interactions, and improved accessibility. New features in the editor increase design freedoms, provide additional layout options and style variations to allow designers complete control over the look of a site. This release also introduces the Twenty Twenty theme giving the user more design flexibility and integration with the Block Editor. Creating beautiful web pages and advanced layouts has never been easier.' ); ?>
     67                        </p>
    9468                </div>
    9569
    9670                <hr />
    9771
    98                 <div class="feature-section is-wide has-2-columns is-wider-right">
    99                         <div class="column">
    100                                 <div class="inline-svg aligncenter">
    101                                         <img src="https://s.w.org/images/core/5.2/about_error-protection.svg" alt="">
     72                <div class="about__section has-2-columns">
     73                        <div class="column is-edge-to-edge has-accent-background-color">
     74                                <div class="about__image aligncenter">
     75                                        <img src="data:image/svg+xml;utf8,%3Csvg width='660' height='818' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='99' y='178' width='132' height='132' fill='%23F4EFE1'/%3E%3Crect x='231' y='310' width='99' height='99' fill='%2344141E'/%3E%3Crect x='330' y='409' width='132' height='132' fill='%23F4EFE1'/%3E%3Crect x='462' y='541' width='99' height='99' fill='%2344141E'/%3E%3C/svg%3E" alt="" />
    10276                                </div>
    10377                        </div>
    10478                        <div class="column is-vertically-aligned-center">
    105                                 <h3><?php _e( 'PHP Error Protection' ); ?></h3>
    106                                 <p><?php _e( 'This administrator-focused update will let you safely fix or manage fatal errors without requiring a developer. It features better handling of the so-called “white screen of death”, and a way to enter recovery mode, which pauses error-causing plugins or themes.' ); ?></p>
     79                                <h3><?php _e( 'Block Editor Improvements' ); ?></h3>
     80                                <p>
     81                                        <?php _e( 'This enhancement-focused update introduces over 150 new features and usability improvements, including improved large image support for uploading non-optimized, high-resolution pictures taken from your smartphone or other high-quality cameras. Combined with larger default image sizes, pictures always look their best.' ); ?>
     82                                </p>
     83
     84                                <p>
     85                                        <?php _e( 'Accessibility improvements include the integration of block editor styles in the admin interface. These improved styles fix many accessibility issues: color contrast on form fields and buttons, consistency between editor and admin interfaces, new snackbar notices, standardizing to the default WordPress color scheme, and the introduction of Motion to make interacting with your blocks feel swift and natural. For people who use a keyboard to navigate the dashboard, the Block Editor now has a Navigation mode. This lets you jump from block to block without tabbing through every part of the block controls.' ); ?>
     86                                </p>
    10787                        </div>
    10888                </div>
    10989
    110                 <hr />
     90                <div class="about__section has-2-columns">
     91                        <div class="column is-vertically-aligned-center">
     92                                <h3><?php _e( 'Expanded Design Flexibility' ); ?></h3>
     93                                <p><?php _e( '&#147;Name&#148; adds even more robust tools for creating amazing designs.' ); ?></p>
     94                                <ul>
     95                                        <li><?php _e( 'The new Group block lets you easily divide your page into colorful sections' ); ?></li>
     96                                        <li><?php _e( 'The Columns block now supports fixed column widths' ); ?></li>
     97                                        <li><?php _e( 'The new Predefined layouts make it a cinch to arrange content into advanced designs' ); ?></li>
     98                                        <li><?php _e( 'Heading blocks now offer controls for text and background color' ); ?></li>
     99                                        <li><?php _e( 'Additional style options allow you to set your preferred style for any block that supports this feature' ); ?></li>
     100                                </ul>
     101                        </div>
     102                        <div class="column is-edge-to-edge has-accent-background-color">
     103                                <div class="about__image aligncenter">
     104                                        <img src="data:image/svg+xml;utf8,%3Csvg width='500' height='500' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='75' y='200' width='150' height='75' fill='%2344141E'/%3E%3Crect x='175' y='75' width='50' height='100' fill='%2385273B'/%3E%3Crect x='75' y='75' width='75' height='100' fill='%23F4EFE1'/%3E%3Crect x='250' y='200' width='175' height='75' fill='%2344141E'/%3E%3Crect x='350' y='75' width='75' height='100' fill='%2385273B'/%3E%3Crect x='250' y='75' width='75' height='100' fill='%23F4EFE1'/%3E%3Crect x='75' y='375' width='150' height='50' fill='%2344141E'/%3E%3Crect x='175' y='300' width='50' height='50' fill='%2385273B'/%3E%3Crect x='75' y='300' width='75' height='50' fill='%23F4EFE1'/%3E%3Crect x='250' y='372.5' width='175' height='52.5' fill='%2344141E'/%3E%3Crect x='350' y='300' width='75' height='50' fill='%2385273B'/%3E%3Crect x='250' y='300' width='75' height='50' fill='%23F4EFE1'/%3E%3C/svg%3E%0A" alt="">
     105                                </div>
     106                        </div>
     107                </div>
    111108
    112                 <h3 class="aligncenter"><?php _e( 'Improvements for Everyone' ); ?></h3>
     109                <div class="about__section has-2-columns has-subtle-background-color">
     110                        <div class="column is-vertically-aligned-center">
     111                                <h3><?php _e( 'Introducing Twenty Twenty' ); ?></h3>
     112                                <p><?php _e( 'As the Block Editor celebrates its first birthday, we are proud that Twenty Twenty is designed with flexibility at its core. Show off your services or products with a combination of columns, groups, and media blocks. Set your content to wide or full alignment for dynamic and engaging layouts. Or let your thoughts be the star with a centered content column!' ); ?></p>
    113113
    114                 <div class="has-2-columns">
    115                         <div class="column aligncenter">
    116                                 <h4><?php _e( 'Accessibility Updates' ); ?></h4>
    117                                 <p><?php _e( 'A number of changes work together to improve contextual awareness and keyboard navigation flow for those using screen readers and other assistive technologies.' ); ?></p>
     114                                <p>
     115                                <?php
     116                                        printf(
     117                                                /* translators: 1: Link to the Inter font website. */
     118                                                __( 'As befits a theme called Twenty Twenty, clarity and readability is also a big focus. The theme includes the typeface <a href="%1$s">Inter</a>, designed by Rasmus Andersson. Inter comes in a Variable Font version, a first for default themes, which keeps load times short by containing all weights and styles of Inter in just two font files.' ),
     119                                                'https://rsms.me/inter/'
     120                                        );
     121                                        ?>
     122                                </p>
     123                        </div>
     124                        <div class="column is-edge-to-edge">
     125                                <div class="about__image aligncenter">
     126                                        <img src="https://cldup.com/rsaSI50LvZ.png" alt="" />
     127                                </div>
    118128                        </div>
    119                         <div class="column aligncenter">
    120                                 <h4><?php _e( 'New Dashboard Icons' ); ?></h4>
    121                                 <p><?php _e( 'Thirteen new icons include Instagram, a suite of icons for BuddyPress, and rotated Earth icons for global inclusion. Find them in the Dashboard and have some fun!' ); ?></p>
     129                </div>
     130
     131                <div class="about__section has-subtle-background-color">
     132                        <div class="column is-edge-to-edge">
     133                                <div class="about__image aligncenter">
     134                                        <img src="https://cldup.com/8AuwuFLW0J.png" alt="" />
     135                                </div>
    122136                        </div>
    123137                </div>
    124138
    125139                <hr />
    126140
    127                 <h3 class="aligncenter"><?php _e( 'Developer Happiness' ); ?></h3>
     141                <div class="about__section has-3-columns">
     142                        <h3 class="is-section-header"><?php _e( 'Improvements for Everyone' ); ?></h3>
    128143
    129                 <div class="has-2-columns is-fullwidth">
    130144                        <div class="column">
    131                                 <h4><a href="https://make.wordpress.org/core/2019/03/26/coding-standards-updates-for-php-5-6/"><?php _e( 'PHP Version Bump' ); ?></a></h4>
    132                                 <p><?php _e( 'The minimum supported PHP version is now 5.6.20. As of WordPress 5.2, themes and plugins can safely take advantage of namespaces, anonymous functions, and more!' ); ?></p>
     145                                <h4><?php _e( 'Automatic Image Rotation' ); ?></h4>
     146                                <p><?php _e( 'Your images will be correctly rotated upon upload according to the embedded orientation data. This feature was first proposed nine years ago and made possible through the perserverance of many dedicated contributors.' ); ?></p>
    133147                        </div>
    134148                        <div class="column">
    135                                 <h4><a href="https://make.wordpress.org/core/2019/04/24/developer-focused-privacy-updates-in-5-2/"><?php _e( 'Privacy Updates' ); ?></a></h4>
    136                                 <p><?php _e( 'A new theme page template, a conditional function, and two CSS classes make designing and customizing the Privacy Policy page easier.' ); ?></p>
     149                                <h4><?php _e( 'Site Health Checks' ); ?></h4>
     150                                <p><?php _e( 'The improvements introduced in 5.3 make it even easier to identify issues. Expanded recommendations highlight areas that may need troubleshooting on your site from the Health Check screen.' ); ?></p>
     151                        </div>
     152                        <div class="column">
     153                                <h4><?php _e( 'Admin Email Verification' ); ?></h4>
     154                                <p><?php _e( 'You’ll now be periodically asked to confirm that your admin email address is up to date when you log in as an administrator. This reduces the chance of getting locked out out of your site if you change your email address.' ); ?></p>
    137155                        </div>
    138156                </div>
    139                 <div class="has-2-columns is-fullwidth">
     157
     158                <div class="about__section">
     159                        <div class="column is-edge-to-edge">
     160                                <div class="about__image aligncenter">
     161                                        <img src="data:image/svg+xml;utf8,%3Csvg width='1000' height='498' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='865.463' y='36.8596' width='133.8' height='132.326' fill='%23942F44'/%3E%3Crect x='865.463' y='180.98' width='133.8' height='132.326' fill='%23942F44'/%3E%3Crect x='866.2' y='328.05' width='133.8' height='132.694' fill='%23942F44'/%3E%3Crect y='331.736' width='405.455' height='134.169' fill='%234E1521'/%3E%3Crect y='36.8596' width='405.455' height='129.008' fill='%234E1521'/%3E%3Crect y='184.298' width='387.025' height='133.8' fill='%234E1521'/%3E%3Crect x='719.13' y='34.6479' width='133.8' height='428.677' fill='%23BD3854'/%3E%3Crect x='571.323' y='18.4297' width='133.8' height='423.885' fill='%23BD3854'/%3E%3Crect x='423.516' y='35.0164' width='133.8' height='425.728' fill='%23BD3854'/%3E%3C/svg%3E" alt="" />
     162                                </div>
     163                        </div>
     164                </div>
     165
     166                <hr />
     167
     168                <div class="about__section has-2-columns has-subtle-background-color">
     169                        <h3 class="is-section-header"><?php _e( 'For Developers' ); ?></h3>
     170
    140171                        <div class="column">
    141                                 <h4><a href="https://make.wordpress.org/core/2019/04/24/miscellaneous-developer-updates-in-5-2/"><?php _e( 'New Body Tag Hook' ); ?></a></h4>
     172                                <h4><?php _e( 'Time/Date Component Fixes' ); ?></h4>
    142173                                <p>
    143                                         <?php
     174                                <?php
    144175                                        printf(
    145                                                 /* translators: 1: wp_body_open, 2: <body> */
    146                                                 __( '5.2 introduces a %1$s hook, which lets themes support injecting code right at the beginning of the %2$s element.' ),
    147                                                 '<code>wp_body_open</code>',
    148                                                 '<code>&lt;body&gt;</code>'
     176                                                /* translators: 1: Link to the date/time developer notes. */
     177                                                __( 'Developers can now work with <a href="%1$s">dates and timezones</a> in a more reliable way. Date and time functionality has received a number of new API functions for unified timezone retrieval and PHP interoperability, as well as many bug fixes.' ),
     178                                                'https://make.wordpress.org/core/2019/09/23/date-time-improvements-wp-5-3/'
    149179                                        );
    150180                                        ?>
    151181                                </p>
    152182                        </div>
    153183                        <div class="column">
    154                                 <h4><a href="https://make.wordpress.org/core/2019/03/25/building-javascript/"><?php _e( 'Building JavaScript' ); ?></a></h4>
    155                                 <p><?php _e( 'With the addition of webpack and Babel configurations in the @wordpress/scripts package, developers won&#8217;t have to worry about setting up complex build tools to write modern JavaScript.' ); ?></p>
     184                                <h4><?php _e( 'PHP 7.4 Compatibility' ); ?></h4>
     185                                <p>
     186                                <?php
     187                                        printf(
     188                                                /* translators: 1: Link to the PHP 7 developer notes. */
     189                                                __( 'The WordPress core team is actively preparing to support PHP 7.4 when it is released later this year. WordPress 5.3 contains <a href="%1$s">multiple changes</a> to remove deprecated functionality and ensure compatibility. Please test 5.3 with PHP 7.4 to ensure all functionality continues to work as expected and does not raise any new warnings.' ),
     190                                                'https://make.wordpress.org/core/2019/10/11/wordpress-and-php-7-4/'
     191                                        );
     192                                        ?>
     193                                </p>
    156194                        </div>
    157195                </div>
    158196