Make WordPress Core


Ignore:
Timestamp:
10/22/2019 07:17:59 PM (5 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/freedoms.php

    r45932 r46572  
    2121
    2222include( ABSPATH . 'wp-admin/admin-header.php' );
    23 
    2423?>
    2524<div class="wrap about-wrap full-width-layout">
    2625
    27 <h1>
    28     <?php
    29     printf(
    30         /* translators: %s: The current WordPress version number. */
    31         __( 'Welcome to WordPress&nbsp;%s' ),
    32         $display_version
    33     );
    34     ?>
    35 </h1>
     26    <div class="about__header">
     27        <div class="about__header-title">
     28            <h1>
     29                <span><?php echo $display_version; ?></span>
     30                <?php _e( 'WordPress' ); ?>
     31            </h1>
     32        </div>
    3633
    37 <p class="about-text">
    38     <?php
    39     printf(
    40         /* translators: %s: The current WordPress version number. */
    41         __( 'Congratulations on updating to WordPress %s! This update makes it easier than ever to fix your site if something goes wrong.' ),
    42         $display_version
    43     );
    44     ?>
    45 </p>
     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>
    4643
    47 <div class="wp-badge">
    48     <?php
    49     printf(
    50         /* translators: %s: The current WordPress version number. */
    51         __( 'Version %s' ),
    52         $display_version
    53     );
    54     ?>
    55 </div>
     44        <div class="about__header-text">
     45            <p>
     46                <?php
     47                printf(
     48                    /* translators: %s: The current WordPress version number. */
     49                    __( 'Introducing our most refined user experience with the improved block editor in WordPress %s!' ),
     50                    $display_version
     51                );
     52                ?>
     53            </p>
     54        </div>
    5655
    57 <nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
    58     <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
    59     <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
    60     <a href="freedoms.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Freedoms' ); ?></a>
    61     <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
    62 </nav>
    63 
    64 <div class="about-wrap-content">
    65     <div class="feature-section has-1-columns">
    66         <h2><?php _e( 'Freedoms' ); ?></h2>
    67         <p class="about-description">
    68         <?php
    69         printf(
    70             /* translators: %s: https://wordpress.org/about/license/ */
    71             __( 'WordPress is Free and open source software, built by a distributed community of mostly volunteer developers from around the world. WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ),
    72             __( 'https://wordpress.org/about/license/' )
    73         );
    74         ?>
    75         </p>
     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"><?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 nav-tab-active" aria-current="page"><?php _e( 'Freedoms' ); ?></a>
     60            <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
     61        </nav>
    7662    </div>
    7763
    78     <div class="feature-section has-4-columns is-fullwidth">
    79         <div class="column">
    80             <div class="freedoms-image"></div>
    81             <h3><?php _e( 'The 1st Freedom' ); ?></h3>
    82             <p><?php _e( 'To run the program for any purpose.' ); ?></p>
     64    <div class="about-wrap-content">
     65        <div class="feature-section has-1-columns">
     66            <h2><?php _e( 'Freedoms' ); ?></h2>
     67            <p class="about-description">
     68            <?php
     69            printf(
     70                /* translators: %s: https://wordpress.org/about/license/ */
     71                __( 'WordPress is Free and open source software, built by a distributed community of mostly volunteer developers from around the world. WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ),
     72                __( 'https://wordpress.org/about/license/' )
     73            );
     74            ?>
     75            </p>
    8376        </div>
    84         <div class="column">
    85             <div class="freedoms-image"></div>
    86             <h3><?php _e( 'The 2nd Freedom' ); ?></h3>
    87             <p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
     77
     78        <div class="feature-section has-4-columns is-fullwidth">
     79            <div class="column">
     80                <div class="freedoms-image"></div>
     81                <h3><?php _e( 'The 1st Freedom' ); ?></h3>
     82                <p><?php _e( 'To run the program for any purpose.' ); ?></p>
     83            </div>
     84            <div class="column">
     85                <div class="freedoms-image"></div>
     86                <h3><?php _e( 'The 2nd Freedom' ); ?></h3>
     87                <p><?php _e( 'To study how the program works and change it to make it do what you wish.' ); ?></p>
     88            </div>
     89            <div class="column">
     90                <div class="freedoms-image"></div>
     91                <h3><?php _e( 'The 3rd Freedom' ); ?></h3>
     92                <p><?php _e( 'To redistribute.' ); ?></p>
     93            </div>
     94            <div class="column">
     95                <div class="freedoms-image"></div>
     96                <h3><?php _e( 'The 4th Freedom' ); ?></h3>
     97                <p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
     98            </div>
    8899        </div>
    89         <div class="column">
    90             <div class="freedoms-image"></div>
    91             <h3><?php _e( 'The 3rd Freedom' ); ?></h3>
    92             <p><?php _e( 'To redistribute.' ); ?></p>
    93         </div>
    94         <div class="column">
    95             <div class="freedoms-image"></div>
    96             <h3><?php _e( 'The 4th Freedom' ); ?></h3>
    97             <p><?php _e( 'To distribute copies of your modified versions to others.' ); ?></p>
     100
     101        <div class="feature-section has-1-columns">
     102            <p>
     103            <?php
     104            printf(
     105                /* translators: %s: https://wordpressfoundation.org/trademark-policy/ */
     106                __( 'WordPress grows when people like you tell their friends about it, and the thousands of businesses and services that are built on and around WordPress share that fact with their users. We&#8217;re flattered every time someone spreads the good word, just make sure to <a href="%s">check out our trademark guidelines</a> first.' ),
     107                'https://wordpressfoundation.org/trademark-policy/'
     108            );
     109            ?>
     110            </p>
     111
     112            <p>
     113            <?php
     114            $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
     115            $themes_url  = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
     116            printf(
     117                /* translators: 1: URL to Plugins screen, 2: URL to Themes screen, 3: https://wordpress.org/about/license/ */
     118                __( 'Every plugin and theme in WordPress.org&#8217;s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="%3$s">ask them if it&#8217;s GPL</a> first. If they don&#8217;t respect the WordPress license, we don&#8217;t recommend them.' ),
     119                $plugins_url,
     120                $themes_url,
     121                __( 'https://wordpress.org/about/license/' )
     122            );
     123            ?>
     124            </p>
     125
     126            <p><?php _e( 'Don&#8217;t you wish all software came with these freedoms? So do we! For more information, check out the <a href="https://www.fsf.org/">Free Software Foundation</a>.' ); ?></p>
    98127        </div>
    99128    </div>
    100129
    101     <div class="feature-section has-1-columns">
    102         <p>
    103         <?php
    104         printf(
    105             /* translators: %s: https://wordpressfoundation.org/trademark-policy/ */
    106             __( 'WordPress grows when people like you tell their friends about it, and the thousands of businesses and services that are built on and around WordPress share that fact with their users. We&#8217;re flattered every time someone spreads the good word, just make sure to <a href="%s">check out our trademark guidelines</a> first.' ),
    107             'https://wordpressfoundation.org/trademark-policy/'
    108         );
    109         ?>
    110         </p>
    111 
    112         <p>
    113         <?php
    114         $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
    115         $themes_url  = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
    116         printf(
    117             /* translators: 1: URL to Plugins screen, 2: URL to Themes screen, 3: https://wordpress.org/about/license/ */
    118             __( 'Every plugin and theme in WordPress.org&#8217;s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="%3$s">ask them if it&#8217;s GPL</a> first. If they don&#8217;t respect the WordPress license, we don&#8217;t recommend them.' ),
    119             $plugins_url,
    120             $themes_url,
    121             __( 'https://wordpress.org/about/license/' )
    122         );
    123         ?>
    124         </p>
    125 
    126         <p><?php _e( 'Don&#8217;t you wish all software came with these freedoms? So do we! For more information, check out the <a href="https://www.fsf.org/">Free Software Foundation</a>.' ); ?></p>
    127     </div>
    128 </div>
    129 
    130130</div>
    131131<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
Note: See TracChangeset for help on using the changeset viewer.