Make WordPress Core

Ticket #34663: 34663.2.diff

File 34663.2.diff, 9.9 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' => ( 'Now you can embed WordPress content inside of other WordPress content! Simply drop a post URL into the editor and see an instant embed preview, complete with title, excerpt, comment and sharing links, even your site icon!' ),
    5456        ),
    5557        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.' ),
     58                'src'         => '//s.w.org/images/core/4.3/better-passwords.png',
     59                'heading'     => ( 'More third-party embeds' ),
     60                '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!' ),
    5961        ),
    6062);
    61 shuffle( $major_features );
    6263
    63 $minor_features = array(
     64$minor_features = array();
     65
     66$tech_features = array(
    6467        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.' ),
     68                'heading'     => ( 'REST API Infrastructure' ),
     69                'description' => array(
     70                        ( '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.' ),
     71                        ( '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.' )
     72                ),
    6873        ),
    6974        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.' ),
     75                'heading'     => ( 'Term meta' ),
     76                /* translators: 1: add_term_meta() docs link, 2: get_term_meta() docs link, 3: update_term_meta() docs link */
     77                'description' => sprintf( ( 'Terms now now support metadata, just like posts. See %1$s, %2$s, and %3$s for more information.' ),
     78                        '<a href=”https://developer.wordpress.org/reference/functions/add_term_meta”><code>add_term_meta()</code></a>',
     79                        '<a href=”https://developer.wordpress.org/reference/functions/get_term_meta”><code>get_term_meta()</code></a>',
     80                        '<a href=”https://developer.wordpress.org/reference/functions/update_term_meta”><code>update_term_meta()</code></a>'
     81                ),
    7382        ),
    7483        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.' ),
     84                'heading'     => ( 'Comment query improvements' ),
     85                /* translators: WP_Comment_Query class name */
     86                '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>' ),
    7887        ),
    79 );
    80 
    81 $tech_features = array(
    8288        array(
    83                 'heading'     => __( 'Taxonomy Roadmap' ),
    84                 'description' => __( 'Terms shared across multiple taxonomies are now split into separate terms.' ),
     89                'heading'     => ( 'Term, Comment, and Network objects' ),
     90                /* translators: 1: WP_Term class name, WP_Comment class name, WP_Network class name */
     91                'description' => sprintf( ( 'New %1$s, %2$s, and %3$s objects make interacting with terms, comments, and networks more predictable and intuitive.' ),
     92                        '<code>WP_Term</code>',
     93                        '<code>WP_Comment</code>',
     94                        '<code>WP_Network</code>'
     95                ),
    8596        ),
    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         ),
    9597);
    9698
    9799?>
     
    138140                                        <?php endif; ?>
    139141                                </div>
    140142                                <h3><?php echo $feature['heading']; ?></h3>
    141                                 <p><?php echo $feature['description']; ?></p>
     143                                <?php if ( is_array( $feature['description'] ) ) :
     144                                        foreach ( $feature['description'] as $description ) {
     145                                                printf( '<p>%s</p>', $description );
     146                                        }
     147                                else: ?>
     148                                        <p><?php echo $feature['description']; ?></p>
     149                                <?php endif; ?>
    142150                        </div>
    143151                        <?php endforeach; ?>
    144152                </div>
     
    150158                                        <img src="<?php echo esc_attr( $feature['src'] ); ?>" alt="" />
    151159                                </div>
    152160                                <h3><?php echo $feature['heading']; ?></h3>
    153                                 <p><?php echo $feature['description']; ?></p>
     161                                <?php if ( is_array( $feature['description'] ) ) :
     162                                        foreach ( $feature['description'] as $description ) {
     163                                                printf( '<p>%s</p>', $description );
     164                                        }
     165                                else: ?>
     166                                        <p><?php echo $feature['description']; ?></p>
     167                                <?php endif; ?>
    154168                        </div>
    155169                        <?php endforeach; ?>
    156170                </div>
     
    162176                                <?php foreach ( $tech_features as $feature ) : ?>
    163177                                <div class="col">
    164178                                        <h4><?php echo $feature['heading']; ?></h4>
    165                                         <p><?php echo $feature['description']; ?></p>
     179                                        <?php if ( is_array( $feature['description'] ) ) :
     180                                                foreach ( $feature['description'] as $description ) {
     181                                                        printf( '<p>%s</p>', $description );
     182                                                }
     183                                        else: ?>
     184                                                <p><?php echo $feature['description']; ?></p>
     185                                        <?php endif; ?>
    166186                                </div>
    167187                                <?php endforeach; ?>
    168188                        </div>