WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/17/2018 04:35:32 PM (11 months ago)
Author:
desrosj
Message:

Help/About: WordPress 5.0 About Page.

The About page describes all the great changes in WordPress 5.0.

Highlights:

  • Warn users of Gutenberg plugin of its deactivation upon 5.0 upgrade.
  • Added illustrations to the Four Freedoms page.
  • Include a link to wporg user’s plugin favorites as a way to display only the classic plugin as a suggestion for install.
  • Detail the Classic Editor plugin and the support timeline.

Props pixelverbieger, ocean90, karmatosed, pento, boemedia, lonelyvegan, sami.keijonen, TimothyBlynJacobs, xkon, afercia, laurelfulford, joostdevalk, ipstenu, matveb, joen, tinkerbelly, chanthaboune, kjellr, alexislloyd, melchoyce, mcsf, courtney0burton, Otto42, cathibosco, tobifjellner, helen, audrasjb, antpb, jjj, elrae, desrosj, azaozz, joemcgill, skithund, gziolo.

Merges [43913], [43921-43922], [43937-43938], [43946-43947], [43952-43953], [43967-43969] into trunk.

Fixes #45178.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-admin/about.php

    r43571 r44264  
    1717list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
    1818
     19wp_enqueue_style( 'wp-block-library' );
     20
    1921include( ABSPATH . 'wp-admin/admin-header.php' );
    2022?>
     
    2224        <h1><?php printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version ); ?></h1>
    2325
    24         <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s will smooth your design workflow and keep you safe from coding errors.' ), $display_version ); ?></p>
     26        <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s introduces a robust new content creation experience.' ), $display_version ); ?></p>
     27
     28        <?php
     29        if (
     30            // Was the Gutenberg plugin installed before upgrading to 5.0.x?
     31            get_option( 'upgrade_500_was_gutenberg_active' ) == '1' &&
     32            current_user_can( 'activate_plugins' ) &&
     33            // Has it not been reactivated since?
     34            is_plugin_inactive( 'gutenberg/gutenberg.php' ) &&
     35            // Is it still installed?
     36            file_exists( WP_PLUGIN_DIR . '/gutenberg/gutenberg.php' )
     37        ) :
     38            ?>
     39            <div class="about-text" style="font-style:italic;">
     40                <?php
     41                printf(
     42                    /* translators: 1: WordPress version, 2: HTML start tag of link, 3: HTML end tag of link */
     43                    __( 'The Gutenberg plugin has been deactivated, as the features are now included in WordPress %1$s by default. If you&#8217;d like to continue to test the upcoming changes in the WordPress editing experience, please %2$sreactivate the Gutenberg plugin%3$s.' ),
     44                    $display_version,
     45                    '<a href="' . esc_url( self_admin_url( 'plugins.php?s=gutenberg&plugin_status=all' ) ) . '">',
     46                    '</a>'
     47                );
     48                ?>
     49            </div>
     50        <?php elseif ( ! file_exists( WP_PLUGIN_DIR . '/classic-editor/classic-editor.php' ) ) : ?>
     51            <p class="about-text">
     52                &#x2139; <a href="#classic-editor"><?php _e( 'Learn how to keep using the old editor.' ); ?></a>
     53            </p>
     54        <?php endif; ?>
     55
    2556        <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
    2657
     
    3465        <div class="feature-section one-col">
    3566            <div class="col">
    36                 <h2>
    37                     <?php
    38                         printf(
    39                             /* translators: %s: party popper emoji */
    40                             __( 'Major Customizer Improvements, Code Error Checking, and More! %s' ),
    41                             '&#x1F389'
    42                         );
    43                         ?>
    44                 </h2>
    45                 <p><?php _e( 'Welcome to an improved Customizer workflow with design drafts, locking, scheduling, and preview links. What&#8217;s more, code syntax highlighting and error checking will make for a clean and smooth site building experience. Finally, if all that wasn&#8217;t pretty great, we&#8217;ve got a great new Gallery widget and improvements to theme browsing and switching.' ); ?></p>
    46             </div>
    47         </div>
    48 
    49         <div class="inline-svg full-width">
     67                <h2><?php _e( 'Say Hello to the New Editor' ); ?></h2>
     68            </div>
     69        </div>
     70
     71        <div class="full-width">
    5072            <picture>
    51                 <source media="(max-width: 500px)" srcset="<?php echo 'https://s.w.org/images/core/4.9/banner-mobile.svg'; ?>">
    52                 <img src="https://s.w.org/images/core/4.9/banner.svg" alt="">
     73                <source type="image/webp" media="(max-width: 782px)" srcset="https://s.w.org/images/core/5.0/header/Gutenberg%20Mobile1x.webp 1x, https://s.w.org/images/core/5.0/header/Gutenberg%20Mobile.webp 2x" />
     74                <source media="(max-width: 782px)" srcset="https://s.w.org/images/core/5.0/header/Gutenberg%20Mobile1x.jpg 1x, https://s.w.org/images/core/5.0/header/Gutenberg%20Mobile.jpg 2x" />
     75                <source type="image/webp" srcset="https://s.w.org/images/core/5.0/header/Gutenberg1x.webp 1x, https://s.w.org/images/core/5.0/header/Gutenberg.webp 2x" />
     76                <img src="https://s.w.org/images/core/5.0/header/Gutenberg1x.jpg" srcset="https://s.w.org/images/core/5.0/header/Gutenberg1x.jpg 1x, https://s.w.org/images/core/5.0/header/Gutenberg.jpg 2x" alt="">
    5377            </picture>
    5478        </div>
    5579
    56         <div class="floating-header-section">
    57             <div class="section-header">
    58                 <h2><?php _e( 'Customizer Workflow Improved' ); ?></h2>
    59             </div>
    60 
    61             <div class="section-content">
    62                 <div class="section-item">
    63                     <div class="inline-svg">
    64                         <img src="https://s.w.org/images/core/4.9/draft-and-schedule.svg" alt="">
    65                     </div>
    66                     <h3><?php _e( 'Draft and Schedule Site Design Customizations' ); ?></h3>
    67                     <p><?php _e( 'Yes, you read that right. Just like you can draft and revise posts and schedule them to go live on the date and time you choose, you can now tinker with your site&#8217;s design and schedule those design changes to go live as you please.' ); ?></p>
     80        <div class="feature-section one-col">
     81            <div class="col">
     82                <p><?php _e( 'You&#8217;ve successfully upgraded to WordPress 5.0! We’ve made some big changes to the editor. Our new block-based editor is the first step toward an exciting new future with a streamlined editing experience across your site. You’ll have more flexibility with how content is displayed, whether you are building your first site, revamping your blog, or write code for a living.' ); ?></p>
     83            </div>
     84        </div>
     85
     86        <div class="feature-section four-col">
     87            <div class="col">
     88                <figure>
     89                    <picture>
     90                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/features/Plugins1x.webp 1x, https://s.w.org/images/core/5.0/features/Plugins.webp 2x">
     91                        <img src="https://s.w.org/images/core/5.0/features/Plugins1x.jpg" srcset="https://s.w.org/images/core/5.0/features/Plugins1x.jpg 1x, https://s.w.org/images/core/5.0/features/Plugins.jpg 2x" alt="" width="250" height="250" />
     92                    </picture>
     93                    <figcaption><?php _e( 'Do more with fewer plugins.' ); ?></figcaption>
     94                </figure>
     95            </div>
     96            <div class="col">
     97                <figure>
     98                    <picture>
     99                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/features/Layout1x.webp 1x, https://s.w.org/images/core/5.0/features/Layout.webp 2x">
     100                        <img src="https://s.w.org/images/core/5.0/features/Layout1x.jpg" srcset="https://s.w.org/images/core/5.0/features/Layout1x.jpg 1x, https://s.w.org/images/core/5.0/features/Layout.jpg 2x" alt="" width="250" height="250" />
     101                    </picture>
     102                    <figcaption><?php _e( 'Create modern, multimedia-heavy layouts.' ); ?></figcaption>
     103                </figure>
     104            </div>
     105            <div class="col">
     106                <figure>
     107                    <picture>
     108                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/features/Responsive1x.webp 1x, https://s.w.org/images/core/5.0/features/Responsive.webp 2x">
     109                        <img src="https://s.w.org/images/core/5.0/features/Responsive1x.jpg" srcset="https://s.w.org/images/core/5.0/features/Responsive1x.jpg 1x, https://s.w.org/images/core/5.0/features/Responsive.jpg 2x" alt="" width="250" height="250" />
     110                    </picture>
     111                    <figcaption><?php _e( 'Work across all screen sizes and devices.' ); ?></figcaption>
     112                </figure>
     113            </div>
     114            <div class="col">
     115                <figure>
     116                    <picture>
     117                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/features/Editor%20Styles1x.webp 1x, https://s.w.org/images/core/5.0/features/Editor%20Styles.webp 2x">
     118                        <img src="https://s.w.org/images/core/5.0/features/Editor%20Styles1x.jpg" srcset="https://s.w.org/images/core/5.0/features/Editor%20Styles1x.jpg 1x, https://s.w.org/images/core/5.0/features/Editor%20Styles.jpg 2x" alt="" width="250" height="250" />
     119                    </picture>
     120                    <figcaption><?php _e( 'Trust that your editor looks like your website.' ); ?></figcaption>
     121                </figure>
     122            </div>
     123        </div>
     124
     125        <div class="feature-section one-col">
     126            <div class="col">
     127                <h2><?php _e( 'Building with Blocks' ); ?></h2>
     128                <p><?php _e( 'The new block-based editor won&#8217;t change the way any of your content looks to your visitors. What it will do is let you insert any type of multimedia in a snap and rearrange to your heart&#8217;s content. Each piece of content will be in its own block; a distinct wrapper for easy maneuvering. If you&#8217;re more of an HTML and CSS sort of person, then the blocks won&#8217;t stand in your way. WordPress is here to simplify the process, not the outcome.' ); ?></p>
     129                <video controls>
     130                    <source src="https://s.w.org/images/core/5.0/videos/add-block.mp4" type="video/mp4">
     131                    <source src="https://s.w.org/images/core/5.0/videos/add-block.webm" type="video/webm">
     132                    <p><?php printf( __( 'Your browser doesn&#8217;t support HTML5 video. Here is a %1$slink to the video%2$s instead.' ), '<a href="https://wordpress.org/gutenberg/files/2018/11/add-block.mp4">', '</a>' ); ?></p>
     133                </video>
     134                <p><?php _e( 'We have tons of blocks available by default, and more get added by the community every day. Here are a few of the blocks to help you get started:' ); ?></p>
     135            </div>
     136        </div>
     137
     138        <div class="feature-section eight-col">
     139            <div class="col">
     140                <figure>
     141                    <picture>
     142                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Paragraph@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Paragraph.webp 2x" />
     143                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Paragraph@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Paragraph@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Paragraph.jpg 2x" alt=""/>
     144                    </picture>
     145                    <figcaption><?php _e( 'Paragraph' ); ?></figcaption>
     146                </figure>
     147            </div>
     148            <div class="col">
     149                <figure>
     150                    <picture>
     151                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Heading@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Heading.webp 2x" />
     152                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Heading@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Heading@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Heading.jpg 2x" alt=""/>
     153                    </picture>
     154                    <figcaption><?php _e( 'Heading' ); ?></figcaption>
     155                </figure>
     156            </div>
     157            <div class="col">
     158                <figure>
     159                    <picture>
     160                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Preformatted@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Preformatted.webp 2x" />
     161                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Preformatted@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Preformatted@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Preformatted.jpg 2x" alt=""/>
     162                    </picture>
     163                    <figcaption><?php _e( 'Preformatted' ); ?></figcaption>
     164                </figure>
     165            </div>
     166            <div class="col">
     167                <figure>
     168                    <picture>
     169                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Quote@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Quote.webp 2x" />
     170                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Quote@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Quote@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Quote.jpg 2x" alt=""/>
     171                    </picture>
     172                    <figcaption><?php _e( 'Quote' ); ?></figcaption>
     173                </figure>
     174            </div>
     175            <div class="col">
     176                <figure>
     177                    <picture>
     178                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Image@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Image.webp 2x" />
     179                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Image@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Image@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Image.jpg 2x" alt=""/>
     180                    </picture>
     181                    <figcaption><?php _e( 'Image' ); ?></figcaption>
     182                </figure>
     183            </div>
     184            <div class="col">
     185                <figure>
     186                    <picture>
     187                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Gallery@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Gallery.webp 2x" />
     188                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Gallery@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Gallery@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Gallery.jpg 2x" alt=""/>
     189                    </picture>
     190                    <figcaption><?php _e( 'Gallery' ); ?></figcaption>
     191                </figure>
     192            </div>
     193            <div class="col">
     194                <figure>
     195                    <picture>
     196                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Cover%20Image@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Cover%20Image.webp 2x" />
     197                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Cover%20Image@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Cover%20Image@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Cover%20Image.jpg 2x" alt=""/>
     198                    </picture>
     199                    <figcaption><?php _e( 'Cover' ); ?></figcaption>
     200                </figure>
     201            </div>
     202            <div class="col">
     203                <figure>
     204                    <picture>
     205                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Video@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Video.webp 2x" />
     206                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Video@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Video@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Video.jpg 2x" alt=""/>
     207                    </picture>
     208                    <figcaption><?php _e( 'Video' ); ?></figcaption>
     209                </figure>
     210            </div>
     211            <div class="col">
     212                <figure>
     213                    <picture>
     214                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Audio@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Audio.webp 2x" />
     215                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Audio@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Audio@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Audio.jpg 2x" alt=""/>
     216                    </picture>
     217                    <figcaption><?php _e( 'Audio' ); ?></figcaption>
     218                </figure>
     219            </div>
     220            <div class="col">
     221                <figure>
     222                    <picture>
     223                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Column@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Column.webp 2x" />
     224                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Column@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Column@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Column.jpg 2x" alt=""/>
     225                    </picture>
     226                    <figcaption><?php _e( 'Columns' ); ?></figcaption>
     227                </figure>
     228            </div>
     229            <div class="col">
     230                <figure>
     231                    <picture>
     232                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20File@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20File.webp 2x" />
     233                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20File@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20File@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20File.jpg 2x" alt=""/>
     234                    </picture>
     235                    <figcaption><?php _e( 'File' ); ?></figcaption>
     236                </figure>
     237            </div>
     238            <div class="col">
     239                <figure>
     240                    <picture>
     241                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Code@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Code.webp 2x" />
     242                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Code@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Code@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Code.jpg 2x" alt=""/>
     243                    </picture>
     244                    <figcaption><?php _e( 'Code' ); ?></figcaption>
     245                </figure>
     246            </div>
     247            <div class="col">
     248                <figure>
     249                    <picture>
     250                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20List@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20List.webp 2x" />
     251                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20List@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20List@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20List.jpg 2x" alt=""/>
     252                    </picture>
     253                    <figcaption><?php _e( 'List' ); ?></figcaption>
     254                </figure>
     255            </div>
     256            <div class="col">
     257                <figure>
     258                    <picture>
     259                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Button@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Button.webp 2x" />
     260                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Button@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Button@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Button.jpg 2x" alt=""/>
     261                    </picture>
     262                    <figcaption><?php _e( 'Button' ); ?></figcaption>
     263                </figure>
     264            </div>
     265            <div class="col">
     266                <figure>
     267                    <picture>
     268                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Embeds@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Embeds.webp 2x" />
     269                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Embeds@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Embeds@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Embeds.jpg 2x" alt=""/>
     270                    </picture>
     271                    <figcaption><?php _e( 'Embeds' ); ?></figcaption>
     272                </figure>
     273            </div>
     274            <div class="col">
     275                <figure>
     276                    <picture>
     277                        <source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20More@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20More.webp 2x" />
     278                        <img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20More@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20More@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20More.jpg 2x" alt=""/>
     279                    </picture>
     280                    <figcaption><?php _e( 'More' ); ?></figcaption>
     281                </figure>
     282            </div>
     283        </div>
     284
     285        <div class="feature-section one-col">
     286            <div class="col">
     287                <h2><?php _e( 'Freedom to Build, Freedom to Write' ); ?></h2>
     288                <p><?php _e( 'This new editing experience provides a more consistent treatment of design as well as content. If you&#8217;re building client sites, you can create reusable blocks. This lets your clients add new content anytime, while still maintaining a consistent look and feel.' ); ?></p>
     289                <video controls>
     290                    <source src="https://s.w.org/images/core/5.0/videos/build.mp4" type="video/mp4">
     291                    <source src="https://s.w.org/images/core/5.0/videos/build.webm" type="video/webm">
     292                    <p><?php printf( __( 'Your browser doesn&#8217;t support HTML5 video. Here is a %1$slink to the video%2$s instead.' ), '<a href="https://wordpress.org/gutenberg/files/2018/11/build.mp4">', '</a>' ); ?></p>
     293                </video>
     294            </div>
     295        </div>
     296
     297        <?php if ( current_user_can( 'edit_posts' ) ) { ?>
     298            <div class="feature-section one-col cta">
     299                <div class="col">
     300                    <a class="button button-primary button-hero" href="<?php echo esc_url( admin_url( 'post-new.php' ) ); ?>"><?php _e( 'Build your first post' ); ?></a>
    68301                </div>
    69                 <div class="section-item">
    70                     <div class="inline-svg">
    71                         <img src="https://s.w.org/images/core/4.9/design-preview-links.svg" alt="">
    72                     </div>
    73                     <h3><?php _e( 'Collaborate with Design Preview Links' ); ?></h3>
    74                     <p><?php _e( 'Need to get some feedback on proposed site design changes? WordPress 4.9 gives you a preview link you can send to your team and customers so that you can collect and integrate feedback before you schedule the changes to go live. Can we say collaboration&#43;&#43;?' ); ?></p>
     302            </div>
     303        <?php } ?>
     304
     305
     306        <hr />
     307
     308        <div class="feature-section one-col">
     309            <div class="col">
     310                <h2><?php _e( 'A Stunning New Default Theme' ); ?></h2>
     311            </div>
     312        </div>
     313
     314        <div class="full-width">
     315            <figure>
     316                <picture>
     317                    <source type="image/webp" media="(max-width: 782px)" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen-mobile@1x.webp 1x, https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen-mobile.webp 2x" />
     318                    <source media="(max-width: 782px)" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen-mobile@1x.jpg 1x, https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen-mobile.jpg 2x" />
     319                    <source type="image/webp" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen@1x.webp 1x, https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen.webp 2x" />
     320                    <img src="https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen@1x.jpg" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen@1x.jpg 1x, https://s.w.org/images/core/5.0/header/twenty-nineteen.jpg 2x" alt="">
     321                </picture>
     322
     323                <figcaption><?php _e( 'The front-end of Twenty Nineteen on the left, and how it looks in the editor on the right.' ); ?></figcaption>
     324            </figure>
     325        </div>
     326
     327        <div class="feature-section one-col">
     328            <div class="col">
     329                <p><?php _e( 'Introducing Twenty Nineteen, a new default theme that shows off the power of the new editor.' ); ?></p>
     330            </div>
     331        </div>
     332
     333        <div class="feature-section three-col">
     334            <div class="col">
     335                <picture>
     336                    <source type="image/webp" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/block%20editor@1x.webp 1x, https://s.w.org/images/core/5.0/twenty%20nineteen/block%20editor.webp 2x" />
     337                    <img src="https://s.w.org/images/core/5.0/twenty%20nineteen/block%20editor@1x.jpg" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/block%20editor@1x.jpg 1x, https://s.w.org/images/core/5.0/twenty%20nineteen/block%20editor.jpg 2x" alt="">
     338                </picture>
     339                <h3><?php _e( 'Designed for the block editor' ); ?></h3>
     340                <p><?php _e( 'Twenty Nineteen features custom styles for the blocks available by default in 5.0. It makes extensive use of editor styles throughout the theme. That way, what you create in your content editor is what you see on the front of your site.' ); ?></p>
     341            </div>
     342            <div class="col">
     343                <picture>
     344                    <source type="image/webp" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/typography@1x.webp 1x, https://s.w.org/images/core/5.0/twenty%20nineteen/typography.webp 2x" />
     345                    <img src="https://s.w.org/images/core/5.0/twenty%20nineteen/typography@1x.jpg" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/typography@1x.jpg 1x, https://s.w.org/images/core/5.0/twenty%20nineteen/typography.jpg 2x" alt="">
     346                </picture>
     347                <h3><?php _e( 'Simple, type-driven layout' ); ?></h3>
     348                <p><?php _e( 'Featuring ample whitespace, and modern sans-serif headlines paired with classic serif body text, Twenty Nineteen is built to be beautiful on the go. It uses system fonts to increase loading speed. No more long waits on slow networks!' ); ?></p>
     349            </div>
     350            <div class="col">
     351                <img src="https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen-versatile.gif" alt="">
     352                <h3><?php _e( 'Versatile design for all sites' ); ?></h3>
     353                <p><?php _e( 'Twenty Nineteen is designed to work for a wide variety of use cases. Whether you’re running a photo blog, launching a new business, or supporting a non-profit, Twenty Nineteen is flexible enough to fit your needs.' ); ?></p>
     354            </div>
     355        </div>
     356
     357        <?php if ( current_user_can( 'customize' ) ) { ?>
     358            <div class="feature-section one-col cta">
     359                <div class="col">
     360                    <a class="button button-primary button-hero load-customize hide-if-no-customize" href="<?php echo esc_url( admin_url( 'customize.php?theme=twentynineteen' ) ); ?>"><?php _e( 'Give Twenty Nineteen a try' ); ?></a>
    75361                </div>
    76                 <div class="section-item">
    77                     <div class="inline-svg">
    78                         <img src="https://s.w.org/images/core/4.9/locking.svg" alt="">
    79                     </div>
    80                     <h3><?php _e( 'Design Locking To Guard Your Changes' ); ?></h3>
    81                     <p><?php _e( 'Ever encounter a scenario where two designers walk into a project and designer A overrides designer B&#8217;s beautiful changes? WordPress 4.9&#8217;s design lock feature (similar to post locking) secures your draft design so that no one can make changes to it or erase all your hard work.' ); ?></p>
     362            </div>
     363        <?php } ?>
     364
     365        <hr />
     366
     367        <div class="under-the-hood feature-section">
     368            <div class="col">
     369                <h2><?php _e( 'Developer Happiness' ); ?></h2>
     370            </div>
     371        </div>
     372
     373        <div class="under-the-hood feature-section three-col">
     374            <div class="col">
     375                <picture>
     376                    <source type="image/webp" srcset="https://s.w.org/images/core/5.0/devs/Protect1x.webp 1x, https://s.w.org/images/core/5.0/devs/Protect.webp 2x" />
     377                    <img src="https://s.w.org/images/core/5.0/devs/Protect1x.jpg" srcset="https://s.w.org/images/core/5.0/devs/Protect1x.jpg 1x, https://s.w.org/images/core/5.0/devs/Protect.jpg 2x" alt="">
     378                </picture>
     379                <h3><?php _e( 'Protect' ); ?></h3>
     380                <p><?php _e( 'Blocks provide a comfortable way for users to change content directly, while also ensuring the content structure cannot be easily disturbed by accidental code edits. This allows the developer to control the output, building polished and semantic markup that is preserved through edits and not easily broken.' ); ?></p>
     381            </div>
     382            <div class="col">
     383                <picture>
     384                    <source type="image/webp" srcset="https://s.w.org/images/core/5.0/devs/Compose1x.webp 1x, https://s.w.org/images/core/5.0/devs/Compose.webp 2x" />
     385                    <img src="https://s.w.org/images/core/5.0/devs/Compose1x.jpg" srcset="https://s.w.org/images/core/5.0/devs/Compose1x.jpg 1x, https://s.w.org/images/core/5.0/devs/Compose.jpg 2x" alt="">
     386                </picture>
     387                <h3><?php _e( 'Compose' ); ?></h3>
     388                <p><?php _e( 'Take advantage of a wide collection of APIs and interface components to easily create blocks with intuitive controls for your clients. Utilizing these components not only speeds up development work but also provide a more consistent, usable, and accessible interface to all users.' ); ?></p>
     389            </div>
     390            <div class="col">
     391                <picture>
     392                    <source type="image/webp" srcset="https://s.w.org/images/core/5.0/devs/Create1x.webp 1x, https://s.w.org/images/core/5.0/devs/Create.webp 2x" />
     393                    <img src="https://s.w.org/images/core/5.0/devs/Create1x.jpg" srcset="https://s.w.org/images/core/5.0/devs/Create1x.jpg 1x, https://s.w.org/images/core/5.0/devs/Create.jpg 2x" alt="">
     394                </picture>
     395                <h3><?php _e( 'Create' ); ?></h3>
     396                <p><?php _e( 'The new block paradigm opens up a path of exploration and imagination when it comes to solving user needs. With the unified block insertion flow, it&#8217;s easier for your clients and customers to find and use blocks for all types of content. Developers can focus on executing their vision and providing rich editing experiences, rather than fussing with difficult APIs.' ); ?></p>
     397            </div>
     398        </div>
     399
     400        <div class="under-the-hood feature-section one-col cta">
     401            <div class="col">
     402                <a class="button button-primary button-hero" href="<?php echo esc_url( 'https://wordpress.org/gutenberg/handbook/' ); ?>"><?php _e( 'Learn how to get started' ); ?></a>
     403            </div>
     404        </div>
     405
     406        <hr />
     407
     408        <?php if ( ! file_exists( WP_PLUGIN_DIR . '/classic-editor/classic-editor.php' ) ) : ?>
     409            <div class="feature-section one-col" id="classic-editor">
     410                <div class="col">
     411                    <h2><?php _e( 'Keep it Classic' ); ?></h2>
    82412                </div>
    83                 <div class="section-item">
    84                     <div class="inline-svg">
    85                         <img src="https://s.w.org/images/core/4.9/prompt.svg" alt="">
    86                     </div>
    87                     <h3><?php _e( 'A Prompt to Protect Your Work' ); ?></h3>
    88                     <p><?php _e( 'Were you lured away from your desk before you saved your new draft design? Fear not, when you return, WordPress 4.9 will politely ask whether or not you&#8217;d like to save your unsaved changes.' ); ?></p>
     413            </div>
     414
     415            <div class="full-width">
     416                <picture>
     417                    <source type="image/webp" media="(max-width: 782px)" srcset="https://s.w.org/images/core/5.0/classic/Classic%20Mobile1x.webp 1x, https://s.w.org/images/core/5.0/classic/Classic%20Mobile.webp 2x" />
     418                    <source media="(max-width: 782px)" srcset="https://s.w.org/images/core/5.0/classic/Classic%20Mobile1x.jpg 1x, https://s.w.org/images/core/5.0/classic/Classic%20Mobile.jpg 2x" />
     419                    <source type="image/webp" srcset="https://s.w.org/images/core/5.0/classic/Classic@1x.webp 1x, https://s.w.org/images/core/5.0/classic/Classic.webp 2x" />
     420                    <img src="https://s.w.org/images/core/5.0/classic/Classic@1x.jpg" srcset="https://s.w.org/images/core/5.0/classic/Classic@1x.jpg 1x, https://s.w.org/images/core/5.0/header/Classic.jpg 2x" alt="">
     421                </picture>
     422            </div>
     423
     424            <div class="feature-section one-col">
     425                <div class="col">
     426                    <p><?php _e( 'Prefer to stick with the familiar Classic Editor? No problem! Support for the Classic Editor plugin will remain in WordPress through 2021.' ); ?></p>
     427                    <p><?php _e( 'The Classic Editor plugin restores the previous WordPress editor and the Edit Post screen. It lets you keep using plugins that extend it, add old-style meta boxes, or otherwise depend on the previous editor. To install, visit your plugins page and click the &#8220;Install Now&#8221; button next to &#8220;Classic Editor&#8221;. After the plugin finishes installing, click &#8220;Activate&#8221;. That’s it!' ); ?></p>
     428                    <p><?php _e( 'Note to users of assistive technology: if you experience usability issues with the block editor, we recommend you continue to use the Classic Editor.' ); ?></p>
     429                    <?php if ( current_user_can( 'install_plugins' ) ) { ?>
     430                        <div class="col cta">
     431                            <a class="button button-primary button-hero" href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'plugin-install.php?tab=favorites&user=wordpressdotorg&save=0' ), 'save_wporg_username_' . get_current_user_id() ) ); ?>"><?php _e( 'Install the Classic Editor' ); ?></a>
     432                        </div>
     433                    <?php } ?>
    89434                </div>
    90435            </div>
    91         </div>
    92 
    93         <div class="floating-header-section">
    94             <div class="section-header">
    95                 <h2><?php _e( 'Coding Enhancements' ); ?></h2>
    96             </div>
    97 
    98             <div class="section-content">
    99                 <div class="section-item">
    100                     <div class="inline-svg">
    101                         <img src="https://s.w.org/images/core/4.9/syntax-highlighting.svg" alt="">
    102                     </div>
    103                     <h3><?php _e( 'Syntax Highlighting and Error Checking? Yes, Please!' ); ?></h3>
    104                     <p><?php _e( 'You&#8217;ve got a display problem but can&#8217;t quite figure out exactly what went wrong in the CSS you lovingly wrote. With syntax highlighting and error checking for CSS editing and the Custom HTML widget introduced in WordPress 4.8.1, you&#8217;ll pinpoint coding errors quickly. Practically guaranteed to help you scan code more easily and suss out and fix code errors quickly.' ); ?></p>
    105                 </div>
    106                 <div class="section-item">
    107                     <div class="inline-svg">
    108                         <img src="https://s.w.org/images/core/4.9/sandbox.svg" alt="">
    109                     </div>
    110                     <h3><?php _e( 'Sandbox for Safety' ); ?></h3>
    111                     <p><?php _e( 'The dreaded white screen. You&#8217;ll avoid it when working on themes and plugin code because WordPress 4.9 will warn you about saving an error. You&#8217;ll sleep better at night.' ); ?></p>
    112                 </div>
    113                 <div class="section-item">
    114                     <div class="inline-svg">
    115                         <img src="https://s.w.org/images/core/4.9/warning.svg" alt="">
    116                     </div>
    117                     <h3><?php _e( 'Warning: Potential Danger Ahead!' ); ?></h3>
    118                     <p><?php _e( 'When you edit themes and plugins directly, WordPress 4.9 will politely warn you that this is a dangerous practice. It will recommend that you backup your files before saving, so they don&#8217;t get overwritten by the next update. Take the safe route: your future self will thank you. Your team and customers will thank you.' ); ?></p>
    119                 </div>
    120             </div>
    121         </div>
    122 
    123         <div class="floating-header-section">
    124             <div class="section-header">
    125                 <h2><?php _e( 'Even More Widget Updates' ); ?></h2>
    126             </div>
    127 
    128             <div class="section-content">
    129                 <div class="section-item">
    130                     <div class="inline-svg">
    131                         <img src="https://s.w.org/images/core/4.9/gallery-widget.svg" alt="">
    132                     </div>
    133                     <h3><?php _e( 'The New Gallery Widget' ); ?></h3>
    134                     <p><?php _e( 'An incremental improvement to the media changes hatched in WordPress 4.8, you can now add a gallery via widget. Yes!' ); ?></p>
    135                 </div>
    136                 <div class="section-item">
    137                     <div class="inline-svg">
    138                         <img src="https://s.w.org/images/core/4.9/media-button.svg" alt="">
    139                     </div>
    140                     <h3><?php _e( 'Press a Button, Add Media' ); ?></h3>
    141                     <p><?php _e( 'Want to add media to your text widget? Embed images, video, and audio directly into the widget along with your text, with our simple but useful Add Media button. Woo!' ); ?></p>
    142                 </div>
    143             </div>
    144         </div>
    145 
    146         <div class="floating-header-section">
    147             <div class="section-header">
    148                 <h2><?php _e( 'Site Building Improvements' ); ?></h2>
    149             </div>
    150 
    151             <div class="section-content">
    152                 <div class="section-item">
    153                     <div class="inline-svg">
    154                         <img src="https://s.w.org/images/core/4.9/theme-switching.svg" alt="">
    155                     </div>
    156                     <h3><?php _e( 'More Reliable Theme Switching' ); ?></h3>
    157                     <p><?php _e( 'When you switch themes, widgets sometimes think they can just up and move location. Improvements in WordPress 4.9 offer more persistent menu and widget placement when you decide it&#8217;s time for a new theme. Additionally, you can preview installed themes or download, install, and preview new themes right. Nothing says handy like being able to preview before you deploy. ' ); ?></p>
    158                 </div>
    159                 <div class="section-item">
    160                     <div class="inline-svg">
    161                         <img src="https://s.w.org/images/core/4.9/menu-flow.svg" alt="">
    162                     </div>
    163                     <h3><?php _e( 'Better Menu Instructions = Less Confusion' ); ?></h3>
    164                     <p><?php _e( 'Were you confused by the steps to create a new menu? Perhaps no longer! We&#8217;ve ironed out the UX for a smoother menu creation process. Newly updated copy will guide you.' ); ?></p>
    165                 </div>
    166             </div>
    167         </div>
    168 
    169         <div class="inline-svg">
    170             <picture>
    171                 <source media="(max-width: 500px)" srcset="<?php echo 'https://s.w.org/images/core/4.9/gutenberg-mobile.svg'; ?>">
    172                 <img src="https://s.w.org/images/core/4.9/gutenberg.svg" alt="">
    173             </picture>
    174         </div>
    175 
    176         <div class="feature-section">
    177             <h2>
    178                 <?php
    179                     printf(
    180                         /* translators: %s: handshake emoji */
    181                         __( 'Lend a Hand with Gutenberg %s' ),
    182                         '&#x1F91D'
    183                     );
    184                     ?>
    185             </h2>
    186             <p>
    187             <?php
    188             printf(
    189                 __( 'WordPress is working on a new way to create and control your content and we&#8217;d love to have your help. Interested in being an <a href="%1$s">early tester</a> or getting involved with the Gutenberg project? <a href="%2$s">Contribute on GitHub</a>.' ),
    190                 __( 'https://wordpress.org/plugins/gutenberg/' ),
    191                 'https://github.com/WordPress/gutenberg'
    192             );
    193             ?>
    194                 </p>
    195         </div>
    196 
    197         <hr />
    198 
    199         <div class="changelog">
    200             <h2>
    201             <?php
    202                 printf(
    203                     /* translators: %s: smiling face with smiling eyes emoji */
    204                     __( 'Developer Happiness %s' ),
    205                     '&#x1F60A'
    206                 );
    207                 ?>
    208             </h2>
    209 
    210             <div class="under-the-hood two-col">
    211                 <div class="col">
    212                     <h3><a href="https://make.wordpress.org/core/2017/11/01/improvements-to-the-customize-js-api-in-4-9/"><?php _e( 'Customizer JS API Improvements' ); ?></a></h3>
    213                     <p>
    214                     <?php
    215                         printf(
    216                             /* translators: %s: https://make.wordpress.org/core/2017/11/01/improvements-to-the-customize-js-api-in-4-9/  */
    217                             __( 'We&#8217;ve made numerous improvements to the Customizer JS API in WordPress 4.9, eliminating many pain points and making it just as easy to work with as the PHP API. There are also new base control templates, a date/time control, and section/panel/global notifications to name a few. <a href="%s">Check out the full list.</a>' ),
    218                             'https://make.wordpress.org/core/2017/11/01/improvements-to-the-customize-js-api-in-4-9/'
    219                         );
    220                         ?>
    221                     </p>
    222                 </div>
    223                 <div class="col">
    224                     <h3><a href="https://make.wordpress.org/core/2017/10/22/code-editing-improvements-in-wordpress-4-9/"><?php _e( 'CodeMirror available for use in your themes and plugins' ); ?></a></h3>
    225                     <p><?php _e( 'We&#8217;ve introduced a new code editing library, CodeMirror, for use within core. Use it to improve any code writing or editing experiences within your plugins, like CSS or JavaScript include fields.' ); ?></p>
    226                 </div>
    227                 <div class="col">
    228                     <h3><a href="https://make.wordpress.org/core/2017/10/30/mediaelement-upgrades-in-wordpress-4-9/"><?php _e( 'MediaElement.js upgraded to 4.2.6' ); ?></a></h3>
    229                     <p><?php _e( 'WordPress 4.9 includes an upgraded version of MediaElement.js, which removes dependencies on jQuery, improves accessibility, modernizes the UI, and fixes many bugs.' ); ?></p>
    230                 </div>
    231                 <div class="col">
    232                     <h3><a href="https://make.wordpress.org/core/2017/10/15/improvements-for-roles-and-capabilities-in-4-9/"><?php _e( 'Improvements to Roles and Capabilities' ); ?></a></h3>
    233                     <p><?php _e( 'New capabilities have been introduced that allow granular management of plugins and translation files. In addition, the site switching process in multisite has been fine-tuned to update the available roles and capabilities in a more reliable and coherent way.' ); ?></p>
    234                 </div>
    235             </div>
    236         </div>
    237 
    238         <hr />
     436
     437            <hr />
     438        <?php endif; ?>
    239439
    240440        <div class="return-to-dashboard">
Note: See TracChangeset for help on using the changeset viewer.