Make WordPress Core

Ticket #34663: 34663.diff

File 34663.diff, 10.3 KB (added by DrewAPicture, 9 years ago)
  • src/wp-admin/about.php

     
    3333
    3434$major_features = array(
    3535        array(
    36                 'src'         => array(
    37                         'mp4'  => '//s.w.org/images/core/4.3/formatting.mp4',
    38                         'ogv'  => '//s.w.org/images/core/4.3/formatting.ogv',
    39                         'webm' => '//s.w.org/images/core/4.3/formatting.webm',
     36                'src'         => '//s.w.org/images/core/4.3/better-passwords.png',
     37                'heading'     => ( 'Twenty Sixteen' ),
     38                'description' => array(
     39                        ( 'Introducing Twenty Sixteen' ),
     40                        ( 'Our newest default theme, Twenty Sixteen, is a fresh take on the traditional blogging format.' ),
     41                        ( 'The theme continues a tradition of taking a mobile-first approach to design. And a harmonious fluid grid, fun color schemes, optional sidebar, and more make this a great addition to the default theme family.' ),
    4042                ),
    41                 'heading'     => __( 'Formatting Shortcuts' ),
    42                 /* Translators: 1: asterisks; 2: number sign; */
    43                 'description' => sprintf( __( 'Your writing flow just got faster with new formatting shortcuts in WordPress 4.3. Use asterisks to create lists and number signs to make a heading. No more breaking your flow; your text looks great with a %1$s and a %2$s.' ), '<code>*</code>', '<code>#</code>' ),
    4443        ),
    4544        array(
    46                 'src'         => '//s.w.org/images/core/4.3/menu-customizer.png',
    47                 'heading'     => __( 'Menus in the Customizer' ),
    48                 'description' => __( 'Create your menu, update it, and assign it, all while live-previewing in the customizer. The streamlined customizer design provides a mobile-friendly and accessible interface. With every release, it becomes easier and faster to make your site just the way you want it.' ),
     45                'src'         => '//s.w.org/images/core/4.3/better-passwords.png',
     46                'heading'     => ( 'Responsive images' ),
     47                'description' => array(
     48                        ( 'It just works.' ),
     49                        ( 'Sites now intelligently provide images in multiple resolutions, based on screen size and the strength of your connection. You don’t need to do anything to your content to enable responsive images; the only difference your visitors might notice would be faster page loads and a better experience across devices!' ),
     50                ),
    4951        ),
    5052        array(
    5153                'src'         => '//s.w.org/images/core/4.3/better-passwords.png',
    52                 'heading'     => __( 'Better Passwords' ),
    53                 'description' => __( 'Keep your site more secure with WordPress&#8217; improved approach to passwords. Instead of receiving passwords via email, you&#8217;ll get a password reset link. When you add new users to your site or edit a user profile, WordPress will automatically generate a secure password.' ),
     54                'heading'     => ( 'WordPress embeds' ),
     55                'description' => array(
     56                        ( 'For six years, users been able to easily embed content in WordPress from services like Flickr, YouTube, Twitter, and more. WordPress 4.4 takes that a step further by making it possible to embed WordPress content in other WordPress content. Any site running WordPress 4.4 or later has post embeds enabled by default.' ),
     57                        ( 'Seamlessly integrated into the post-editing experience, simply drop a post URL into the editor and see an instant embed preview, which includes the title and excerpt, and comment and sharing links. We’ve even included your site icon if you’ve set one!' ),
     58                ),
    5459        ),
    5560        array(
    56                 'src'         => '//s.w.org/images/core/4.3/site-icon-customizer.png',
    57                 'heading'     => __( 'Site Icons' ),
    58                 'description' => __( 'Site icons represent your site in browser tabs, bookmark menus, and on the home screen of mobile devices. Add your unique site icon in the customizer; it will even stay in place when you switch themes. Make your whole site reflect your brand.' ),
     61                'src'         => '//s.w.org/images/core/4.3/better-passwords.png',
     62                'heading'     => ( 'More third-party embeds' ),
     63                'description' => ( 'If the addition of post embeds weren’t enough, WordPress 4.4 also adds support for five new oEmbed providers: CloudUp, ReverbNation, Reddit Comments, VideoPress, and Speaker Deck!' ),
    5964        ),
    6065);
    61 shuffle( $major_features );
    6266
    63 $minor_features = array(
     67$minor_features = array();
     68
     69$tech_features = array(
    6470        array(
    65                 'src'         => 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBmaWxsPSIjMDBhMGQyIiBkPSJNNTAgMjE1aDI0MHYzMEg1MHpNNTAgMjc1aDI0MHYzMEg1MHpNNTAgMTU1aDI0MHYzMEg1MHpNNTAgOTVoMjQwdjMwSDUwek0zMTAuMSA5NWwxOS45IDMwIDIwLjEtMzAiLz48L3N2Zz4=',
    66                 'heading'     => __( 'A smoother admin experience' ),
    67                 'description' => __( 'Refinements to the list view across the admin make your WordPress more accessible and easier to work with on any device.' ),
     71                'heading'     => ( 'REST API Infrastructure' ),
     72                'description' => array(
     73                        ( 'WordPress 4.4 marks the beginning of an API revolution with the integration of the REST API infrastructure. The REST API gives developers a robust path forward for building and extending  RESTful APIs on top of WordPress.' ),
     74                        ( 'The infrastructure is the first of a multi-staged rollout for the REST API project, which targets inclusion of core endpoints in the upcoming WordPress 4.5 release. To get a sneak peek of the core endpoints, and for more information on extending the REST API, check out the official <a href=”https://wordpress.org/plugins/rest-api/”>WordPress REST API</a> plugin.' )
     75                ),
    6876        ),
    6977        array(
    70                 'src'         => 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0iIzAwYTBkMiIgZD0iTTUgMmgxMHEuODIgMCAxLjQxLjU5VDE3IDR2OHEwIC44Mi0uNTkgMS40MVQxNSAxNGgtMmwtNSA1di01SDVxLS44MiAwLTEuNDEtLjU5VDMgMTJWNHEwLS44Mi41OS0xLjQxVDUgMnptOC41IDguNUwxMSA4bDIuNS0yLjUtMS0xTDEwIDcgNy41IDQuNWwtMSAxTDkgOGwtMi41IDIuNSAxIDFMMTAgOWwyLjUgMi41eiIvPjwvc3ZnPg==',
    71                 'heading'     => __( 'Comments turned off on pages' ),
    72                 'description' => __( 'All new pages that you create will have comments turned off. Keep discussions to your blog, right where they&#8217;re supposed to happen.' ),
     78                'heading'     => ( 'Term meta' ),
     79                /* translators: 1: add_term_meta() docs link, 2: get_term_meta() docs link, 3: update_term_meta() docs link */
     80                'description' => sprintf( ( 'Terms now now support metadata, just like posts. See %1$s, %2$s, and %3$s for more information.' ),
     81                        '<a href=”https://developer.wordpress.org/reference/functions/add_term_meta”><code>add_term_meta()</code></a>',
     82                        '<a href=”https://developer.wordpress.org/reference/functions/get_term_meta”><code>get_term_meta()</code></a>',
     83                        '<a href=”https://developer.wordpress.org/reference/functions/update_term_meta”><code>update_term_meta()</code></a>'
     84                ),
    7385        ),
    7486        array(
    75                 'src'         => 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZmlsbD0iIzAwYTBkMiIgZD0iTTI5LjMyOCA1LjcxMnEuMDQ4LS4xNDQuMDk2LS4zODR0LS4wNjQtLjgxNi0uNTI4LS45NzZxLS4zODQtLjM2OC0uODcyLS40NjR0LS43OTIgMGwtLjI4OC4wOHEtMS40NTYuNzItNS44OCAzLjczNnQtNi4zOTIgNS4xNzZxLS43MzYuODMyLTEuNDA4IDIuMzJ0LS44OCAzIC41NDQgMi4zOTJxLjgzMi43MzYgMi4zNDQuNTc2dDMuMDcyLS44MjQgMi4yNDgtMS4zNTJxMi4xNDQtMi4xNDQgNS4xNjgtNi42NTZ0My42MzItNS44MDh6TTIuMjQgMjguMjRxMS4wNTYtLjY4OCAxLjcxMi0xLjUyOHQuOTUyLTEuNjE2LjU0NC0xLjUyLjcyLTEuNDggMS4yNC0xLjI4cTEuMDg4LS44IDIuNTA0LS43MDR0Mi40MjQgMS4xNjhxLjgxNi44OC44MjQgMi42NHQtMS4wOCAyLjg5NnEtMS4yMTYgMS4xMi0yLjkwNCAxLjYyNHQtMy40MjQuNDI0LTMuNTEyLS42MjR6Ii8+PC9zdmc+',
    76                 'heading'     => __( 'Customize your site quickly' ),
    77                 'description' => __( 'Wherever you are on the front-end, you can click the customize link in the toolbar to swiftly make changes to your site.' ),
     87                'heading'     => ( 'Comment query improvements' ),
     88                /* translators: WP_Comment_Query class name */
     89                'description' => sprintf( ( 'Comment queries now have improved cache handling and performance. Multiple new arguments in %s making crafting robust comment queries simpler.' ), '<code>WP_Comment_Query</code>' ),
    7890        ),
    79 );
    80 
    81 $tech_features = array(
    8291        array(
    83                 'heading'     => __( 'Taxonomy Roadmap' ),
    84                 'description' => __( 'Terms shared across multiple taxonomies are now split into separate terms.' ),
     92                'heading'     => ( 'Term, Comment, and Network objects' ),
     93                /* translators: 1: WP_Term class name, WP_Comment class name, WP_Network class name */
     94                'description' => sprintf( ( 'New %1$s, %2$s, and %3$s objects make interacting with terms, comments, and networks more predictable and intuitive.' ),
     95                        '<code>WP_Term</code>',
     96                        '<code>WP_Comment</code>',
     97                        '<code>WP_Network</code>'
     98                ),
    8599        ),
    86         array(
    87                 'heading'     => __( 'Template Hierarchy' ),
    88                 /* Translators: 1: singular.php; 2: single.php; 3:page.php */
    89                 'description' => sprintf( __( 'Added %1$s as a fallback for %2$s and %3$s' ), '<code>singular.php</code>', '<code>single.php</code>', '<code>page.php</code>' ),
    90         ),
    91         array(
    92                 'heading'     => '<code>WP_List_Table</code>',
    93                 'description' => __( 'List tables can and should designate a primary column.' ),
    94         ),
    95100);
    96101
    97102?>
     
    138143                                        <?php endif; ?>
    139144                                </div>
    140145                                <h3><?php echo $feature['heading']; ?></h3>
    141                                 <p><?php echo $feature['description']; ?></p>
     146                                <?php if ( is_array( $feature['description'] ) ) :
     147                                        foreach ( $feature['description'] as $description ) {
     148                                                printf( '<p>%s</p>', $description );
     149                                        }
     150                                else: ?>
     151                                        <p><?php echo $feature['description']; ?></p>
     152                                <?php endif; ?>
    142153                        </div>
    143154                        <?php endforeach; ?>
    144155                </div>
     
    150161                                        <img src="<?php echo esc_attr( $feature['src'] ); ?>" alt="" />
    151162                                </div>
    152163                                <h3><?php echo $feature['heading']; ?></h3>
    153                                 <p><?php echo $feature['description']; ?></p>
     164                                <?php if ( is_array( $feature['description'] ) ) :
     165                                        foreach ( $feature['description'] as $description ) {
     166                                                printf( '<p>%s</p>', $description );
     167                                        }
     168                                else: ?>
     169                                        <p><?php echo $feature['description']; ?></p>
     170                                <?php endif; ?>
    154171                        </div>
    155172                        <?php endforeach; ?>
    156173                </div>
     
    162179                                <?php foreach ( $tech_features as $feature ) : ?>
    163180                                <div class="col">
    164181                                        <h4><?php echo $feature['heading']; ?></h4>
    165                                         <p><?php echo $feature['description']; ?></p>
     182                                        <?php if ( is_array( $feature['description'] ) ) :
     183                                                foreach ( $feature['description'] as $description ) {
     184                                                        printf( '<p>%s</p>', $description );
     185                                                }
     186                                        else: ?>
     187                                                <p><?php echo $feature['description']; ?></p>
     188                                        <?php endif; ?>
    166189                                </div>
    167190                                <?php endforeach; ?>
    168191                        </div>