Make WordPress Core

Ticket #38616: 38616.5.diff

File 38616.5.diff, 10.0 KB (added by joemcgill, 8 years ago)
  • src/wp-admin/about.php

    diff --git src/wp-admin/about.php src/wp-admin/about.php
    index ba6c886..abeb43a 100644
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    5353                <div class="feature-section one-col">
    5454                        <h2><?php _e( 'Presenting Twenty Seventeen' ); ?></h2>
    5555                        <p class="lead-description"><?php _e( 'A brand new default theme brings your site to life with immersive featured images and video headers.' ); ?></p>
    56                         <img src="https://cldup.com/vOUPhX0Y1J.jpg" alt="" />
     56                        <picture>
     57                                <source media="(min-width: 450px)" srcset="https://s.w.org/images/core/4.7/twenty-seventeen-1600.jpg?v1 1600w, https://s.w.org/images/core/4.7/twenty-seventeen-493.jpg?v1 493w, https://s.w.org/images/core/4.7/twenty-seventeen-663.jpg?v1 663w, https://s.w.org/images/core/4.7/twenty-seventeen-804.jpg?v1 804w, https://s.w.org/images/core/4.7/twenty-seventeen-928.jpg?v1 928w, https://s.w.org/images/core/4.7/twenty-seventeen-1058.jpg?v1 1058w, https://s.w.org/images/core/4.7/twenty-seventeen-1173.jpg?v1 1173w, https://s.w.org/images/core/4.7/twenty-seventeen-1299.jpg?v1 1299w, https://s.w.org/images/core/4.7/twenty-seventeen-1410.jpg?v1 1410w, https://s.w.org/images/core/4.7/twenty-seventeen-1513.jpg?v1 1513w, https://s.w.org/images/core/4.7/twenty-seventeen-1595.jpg?v1 1595w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 782px) calc(100vw - 70px), (max-width: 959px) calc(100vw - 116px), (max-width: 1290px) calc(100vw - 240px), 1050px">
     58                                <source srcset="https://s.w.org/images/core/4.7/twenty-seventeen-mobile-564.jpg?v1 564w, https://s.w.org/images/core/4.7/twenty-seventeen-mobile-280.jpg?v1 280w, https://s.w.org/images/core/4.7/twenty-seventeen-mobile-372.jpg?v1 372w, https://s.w.org/images/core/4.7/twenty-seventeen-mobile-454.jpg?v1 454w, https://s.w.org/images/core/4.7/twenty-seventeen-mobile-541.jpg?v1 541w" sizes="calc(100vw - 40px)">
     59                                <img src="https://s.w.org/images/core/4.7/twenty-seventeen-1600.jpg?v1" srcset="https://s.w.org/images/core/4.7/twenty-seventeen-1600.jpg?v1 1600w, https://s.w.org/images/core/4.7/twenty-seventeen-280.jpg?v1 280w, https://s.w.org/images/core/4.7/twenty-seventeen-493.jpg?v1 493w, https://s.w.org/images/core/4.7/twenty-seventeen-663.jpg?v1 663w, https://s.w.org/images/core/4.7/twenty-seventeen-804.jpg?v1 804w, https://s.w.org/images/core/4.7/twenty-seventeen-928.jpg?v1 928w, https://s.w.org/images/core/4.7/twenty-seventeen-1058.jpg?v1 1058w, https://s.w.org/images/core/4.7/twenty-seventeen-1173.jpg?v1 1173w, https://s.w.org/images/core/4.7/twenty-seventeen-1299.jpg?v1 1299w, https://s.w.org/images/core/4.7/twenty-seventeen-1410.jpg?v1 1410w, https://s.w.org/images/core/4.7/twenty-seventeen-1513.jpg?v1 1513w, https://s.w.org/images/core/4.7/twenty-seventeen-1595.jpg?v1 1595w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 782px) calc(100vw - 70px), (max-width: 959px) calc(100vw - 116px), (max-width: 1290px) calc(100vw - 240px), 1050px" alt="">
     60                        </picture>
    5761                        <p><?php _e( 'Twenty Seventeen focuses on business sites and features a customizable front page with multiple sections. Personalize it with widgets, navigation, social menus, a logo, custom colors, and more. Our default theme for 2017 works great in many languages, on any device, and for a wide range of users.' ); ?></p>
    5862                </div>
    5963
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    7276                        <div class="col">
    7377                                <?php
    7478                                echo wp_video_shortcode( array(
    75                                         'mp4'      => 'https://cldup.com/drMtx9mh_D.mp4',
    76                                         // 'webm'     => 'https://s.w.org/images/core/4.6/streamlined-updates.webm',
    77                                         // 'poster'   => 'https://s.w.org/images/core/4.6/streamlined-updates-2000.png?v1',
     79                                        'mp4'      => 'https://s.w.org/images/core/4.7/starter-content.mp4?v1',
     80                                        'poster'   => 'https://s.w.org/images/core/4.7/starter-content.jpg?v1',
    7881                                        'loop'     => true,
    7982                                        'autoplay' => true,
    8083                                        'width'    => 1140,
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    9093                                <h3><?php _e( 'Edit Shortcuts' ); ?></h3>
    9194                                <?php
    9295                                echo wp_video_shortcode( array(
    93                                         'mp4'      => 'https://cldup.com/PaNFgzdnna.mp4',
    94                                         // 'webm'     => 'https://s.w.org/images/core/4.6/streamlined-updates.webm',
    95                                         // 'poster'   => 'https://s.w.org/images/core/4.6/streamlined-updates-2000.png?v1',
     96                                        'mp4'      => 'https://s.w.org/images/core/4.7/edit-shortcuts.mp4?v1',
     97                                        'poster'   => 'https://s.w.org/images/core/4.7/edit-shortcuts.jpg?v1',
    9698                                        'loop'     => true,
    9799                                        'autoplay' => true,
    98100                                        'width'    => 2520,
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    106108                                <h3><?php _e( 'Video Headers' ); ?></h3>
    107109                                <?php
    108110                                echo wp_video_shortcode( array(
    109                                         'mp4'      => 'https://cldup.com/qPvXxrut7L.mp4',
    110                                         // 'webm'     => 'https://s.w.org/images/core/4.6/streamlined-updates.webm',
    111                                         // 'poster'   => 'https://s.w.org/images/core/4.6/streamlined-updates-2000.png?v1',
     111                                        'mp4'      => 'https://s.w.org/images/core/4.7/header-video.mp4?v1',
     112                                        'poster'   => 'https://s.w.org/images/core/4.7/header-video.jpg?v1',
    112113                                        'loop'     => true,
    113114                                        'autoplay' => true,
    114115                                        'width'    => 2520,
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    123124                <div class="feature-section two-col">
    124125                        <div class="col">
    125126                                <h3><?php _e( 'Smoother Menu Building' ); ?></h3>
    126                                 <img src="https://cldup.com/qhkOJVA69G.jpg" alt="" />
     127                                <img src="https://s.w.org/images/core/4.7/nav-menus-760.jpg?v1" srcset="https://s.w.org/images/core/4.7/nav-menus-760.jpg?v1 760w, https://s.w.org/images/core/4.7/nav-menus-280.jpg?v1 280w, https://s.w.org/images/core/4.7/nav-menus-536.jpg?v1 536w, https://s.w.org/images/core/4.7/nav-menus-745.jpg?v1 745w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 781px) calc((100vw - 70px) * .466), (max-width: 959px) calc((100vw - 116px) * .469), (max-width: 1290px) calc((100vw - 240px) * .472), 496px" alt="" />
    127128                                <p><?php _e( 'Many menus for sites contain links to the pages of your site, but what happens when you don&#8217;t have any pages yet? Now you can add new pages while building menus instead of leaving the customizer and abandoning your changes. Once you&#8217;ve published your customizations, you&#8217;ll have new pages ready for you to fill with content.' );?></p>
    128129                        </div>
    129130                        <div class="col">
    130131                                <h3><?php _e( 'Custom CSS' ); ?></h3>
    131                                 <img src="https://cldup.com/uLLUgWamG1.jpg" alt="" />
     132                                <img src="https://s.w.org/images/core/4.7/css-760.jpg?v1" srcset="https://s.w.org/images/core/4.7/css-760.jpg?v1 760w, https://s.w.org/images/core/4.7/css-280.jpg?v1 280w, https://s.w.org/images/core/4.7/css-547.jpg?v1 547w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 781px) calc((100vw - 70px) * .466), (max-width: 959px) calc((100vw - 116px) * .469), (max-width: 1290px) calc((100vw - 240px) * .472), 496px" alt="" />
    132133                                <p><?php _e( 'Sometimes you just need a few visual tweaks to make your site perfect. WordPress 4.7 allows you to add custom CSS and instantly see how your changes affect your site. The live preview allows you to work quickly without page refreshes slowing you down.' ); ?></p>
    133134                        </div>
    134135                </div>
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    138139                <div class="feature-section no-heading two-col">
    139140                        <div class="col">
    140141                                <h3><?php _e( 'PDF Thumbnail Previews' ); ?></h3>
    141                                 <img src="https://cldup.com/tDz71MBtjn.jpg" alt="" />
     142                                <img src="https://s.w.org/images/core/4.7/pdf-760.jpg?v1" srcset="https://s.w.org/images/core/4.7/pdf-760.jpg?v1 760w, https://s.w.org/images/core/4.7/pdf-280.jpg?v1 280w, https://s.w.org/images/core/4.7/pdf-412.jpg?v1 412w, https://s.w.org/images/core/4.7/pdf-516.jpg?v1 516w, https://s.w.org/images/core/4.7/pdf-615.jpg?v1 615w, https://s.w.org/images/core/4.7/pdf-716.jpg?v1 716w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 781px) calc((100vw - 70px) * .466), (max-width: 959px) calc((100vw - 116px) * .469), (max-width: 1290px) calc((100vw - 240px) * .472), 496px" alt="" />
    142143                                <p><?php _e( 'Managing your document collection is easier with WordPress 4.7. Uploading PDFs will generate thumbnail images so you can more easily distinguish between all your documents.' ); ?></p>
    143144                        </div>
    144145                        <div class="col">
    145146                                <h3><?php _e( 'Dashboard in your language' ); ?></h3>
    146                                 <img src="https://cldup.com/PtlX3xeJpX.jpg" alt="" />
     147                                <img src="https://s.w.org/images/core/4.7/language-760.jpg?v1" srcset="https://s.w.org/images/core/4.7/language-760.jpg?v1 760w, https://s.w.org/images/core/4.7/language-280.jpg?v1 280w, https://s.w.org/images/core/4.7/language-568.jpg?v1 568w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 781px) calc((100vw - 70px) * .466), (max-width: 959px) calc((100vw - 116px) * .469), (max-width: 1290px) calc((100vw - 240px) * .472), 496px" alt="" />
    147148                                <p><?php _e( 'Just because your site is in one language doesn&#8217;t mean that everybody helping manage it prefers that language for their admin. Add more languages to your site and a user language option will show up in your user&#8217;s profiles.' );?></p>
    148149                        </div>
    149150                </div>
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    153154                <div class="rest-api feature-section one-col">
    154155                        <h2><?php _e( 'Introducing REST API Content Endpoints' ); ?></h2>
    155156                        <p class="lead-description"><?php _e( 'WordPress 4.7 comes with REST API endpoints for posts, comments, terms, users, meta, and settings.' ); ?></p>
    156                         <img src="https://cldup.com/WkGAL4UJfI.jpg" alt="" />
     157                        <img src="https://s.w.org/images/core/4.7/api-1559.jpg?v1" srcset="https://s.w.org/images/core/4.7/api-2100.jpg?v1 2100w, https://s.w.org/images/core/4.7/api-280.jpg?v1 280w, https://s.w.org/images/core/4.7/api-1034.jpg?v1 1034w, https://s.w.org/images/core/4.7/api-1559.jpg?v1 1559w, https://s.w.org/images/core/4.7/api-2032.jpg?v1 2032w" sizes="(max-width: 500px) calc(100vw - 40px), (max-width: 782px) calc(100vw - 70px), (max-width: 959px) calc(100vw - 116px), (max-width: 1290px) calc(100vw - 240px), 1050px" alt="" />
    157158                        <p><?php
    158159                                printf(
    159160                                        /* translators: %s: https://developer.wordpress.org/rest-api/  */