Make WordPress Core

Ticket #36173: 36173.20.diff

File 36173.20.diff, 11.3 KB (added by kirasong, 9 years ago)

Combined patches, added titles.

  • src/wp-admin/about.php

    diff --git src/wp-admin/about.php src/wp-admin/about.php
    index caca10f..bee9b9b 100644
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    6161                <div class="feature-section two-col">
    6262                        <h2><?php _e( 'Editing Improvements' ); ?></h2>
    6363                        <div class="col">
    64                                 <img src="https://cldup.com/klO9vWGiT3.png" />
     64                                <img src="https://cldup.com/klO9vWGiT3.png" alt="" />
    6565                                <h3><?php _e( 'Inline Linking' ); ?></h3>
    6666                                <p><?php _e( 'Stay focused on your writing with a less distracting interface that keeps you in place and allows you to easily link to your content.' ); ?></p>
    6767                        </div>
    6868                        <div class="col">
    69                                 <img src="https://cldup.com/TE-OBMWHkX.png" />
     69                                <img src="https://cldup.com/TE-OBMWHkX.png" alt="" />
    7070                                <h3><?php _e( 'Formatting Shortcuts' ); ?></h3>
    7171                                <p><?php _e( 'Do you enjoy using formatting shortcuts for lists and headings? Now they&#8217;re even more useful, with horizontal lines and <code>&lt;code&gt;</code>.' ); ?></p>
    7272                        </div>
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    7777                <div class="feature-section two-col">
    7878                        <h2><?php _e( 'Customization Improvements' ); ?></h2>
    7979                        <div class="col">
    80                                 <img src="https://cldup.com/0iRJNVbt4G.png" />
     80                                <img src="https://cldup.com/0iRJNVbt4G.png" alt="" />
    8181                                <h3><?php _e( 'Live Responsive Previews' ); ?></h3>
    8282                                <?php
    8383                                if ( current_user_can( 'customize' ) ) {
    84                                         $customize_url = esc_url( admin_url( 'customize.php' ) );
    85                                         $customizer_link = sprintf( __( '<a href="%1$s" class="load-customize">%2$s</a>' ), $customize_url, __( 'customizer' ) );
     84                                        $customize_url = admin_url( 'customize.php' );
     85                                        $customizer_link = sprintf( '<a href="%1$s" class="load-customize">%2$s</a>', esc_url( $customize_url ), __( 'customizer' ) );
    8686                                } else {
    8787                                        $customizer_link = __( 'customizer' );
    8888                                }
    8989                                ?>
    90                                 <p><?php printf( __( 'Make sure your site looks great on all screens! Preview mobile, tablet, and desktop views directly in the %s.' ), $customizer_link ); ?></p>
     90                                <p><?php
     91                                        /* translators: "customizer", linked to Site Identity section of the customizer if theme support exists */
     92                                        printf( __( 'Make sure your site looks great on all screens! Preview mobile, tablet, and desktop views directly in the %s.' ), $customizer_link );
     93                                ?></p>
    9194                        </div>
    9295                        <div class="col">
    93                                 <img src="https://cldup.com/HWDA8xR_8G.png" />
     96                                <img src="https://cldup.com/HWDA8xR_8G.png" alt="" />
    9497                                <h3><?php _e( 'Custom Logos' ); ?></h3>
    9598                                <p><?php _e( 'Themes can now support logos for your business or brand.' ); ?>
    9699                                        <?php
    97100                                        if ( current_theme_supports( 'custom-logo' ) && current_user_can( 'customize' ) ) {
    98                                                 printf( __( 'Your theme supports custom logos! Try it out right now in the <a href="%s" class="load-customize">Site Identity</a> section of the customizer.' ), add_query_arg( 'autofocus[section]', 'title_tagline', $customize_url ) );
     101                                                printf(
     102                                                        /* translators: %s: URL to Site Identity section of the customizer */
     103                                                        __( 'Your theme supports custom logos! Try it out right now in the <a href="%s" class="load-customize">Site Identity</a> section of the customizer.' ),
     104                                                        esc_url( add_query_arg( array( 'autofocus' => array( 'section' => 'title_tagline' ) ), $customize_url ) )
     105                                                );
    99106                                        } else {
    100                                                 _e( 'The Twenty Fifteen and Twenty Sixteen themes have been updated to support custom logos, which can be found in the Site Identity section of the Customizer.' );
     107                                                _e( 'The Twenty Fifteen and Twenty Sixteen themes have been updated to support custom logos, which can be found in the Site Identity section of the customizer.' );
    101108                                        }
    102109                                        ?></p>
    103110                        </div>
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    106113                <hr />
    107114
    108115                <div class="changelog">
    109                         <h3><?php _e( 'Under the Hood' ); ?></h3>
     116                        <h2><?php _e( 'Under the Hood' ); ?></h2>
    110117
    111118                        <div class="under-the-hood three-col">
    112119                                <div class="col">
    113                                         <h4><?php _e( 'Smart Image Resizing' ); ?></h4>
    114                                         <p><?php printf( __( 'Generated images now load up to 50&#37; faster with no noticeable quality loss. <a href="%s">It&#8217;s really cool</a>.' ), 'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/' ); ?></p>
     120                                        <h3><?php _e( 'Smart Image Resizing' ); ?></h3>
     121                                        <p><?php
     122                                                printf(
     123                                                        /* translators: %s: URL to the development post of the new feature */
     124                                                        __( 'Generated images now load up to 50&#37; faster with no noticeable quality loss. <a href="%s">It&#8217;s really cool</a>.' ),
     125                                                        'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/'
     126                                                );
     127                                        ?></p>
    115128                                </div>
    116129                                <div class="col">
    117                                         <h4><?php _e( 'Selective Refresh' ); ?></h4>
    118                                         <p><?php
    119                                                 printf( __( 'The customizer now supports a <a href="%s">comprehensive framework</a> for rendering parts of the preview without rewriting your PHP code in JavaScript.' ), 'https://make.wordpress.org/core/2016/02/16/selective-refresh-in-the-customizer/' );
     130                                        <h3><?php _e( 'Selective Refresh' ); ?></h3>
     131                                        <p><?php
     132                                                printf(
     133                                                        /* translators: %s: URL to the development post of the new feature */
     134                                                        __( 'The customizer now supports a <a href="%s">comprehensive framework</a> for rendering parts of the preview without rewriting your PHP code in JavaScript.' ),
     135                                                        'https://make.wordpress.org/core/2016/02/16/selective-refresh-in-the-customizer/'
     136                                                );
    120137                                                if ( current_user_can( 'customize' ) && current_user_can( 'edit_theme_options' ) ) {
    121138                                                        if ( current_theme_supports( 'menus' ) && ! current_theme_supports( 'customize-selective-refresh-widgets' ) ) {
    122                                                                 printf( ' ' . __( 'See it in action with <a href="%1$s" class="load-customize">Menus</a>.' ), add_query_arg( 'autofocus[panel]', 'nav_menus', $customize_url ) );
     139                                                                printf(
     140                                                                        /* translators: %s: URL to Menus section of the customizer  */
     141                                                                        ' ' . __( 'See it in action with <a href="%s" class="load-customize">Menus</a>.' ),
     142                                                                        esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) )
     143                                                                );
    123144                                                        } elseif ( current_theme_supports( 'customize-selective-refresh-widgets' ) ) { // If widgets are supported, menus are also because of the menus widget.
    124                                                                 printf( ' ' . __( 'See it in action with <a href="%1$s" class="load-customize">Menus</a> or <a href="%2$s" class="load-customize">Widgets</a>.' ), add_query_arg( 'autofocus[panel]', 'nav_menus', $customize_url ), add_query_arg( 'autofocus[panel]', 'widgets', $customize_url ) );
     145                                                                printf(
     146                                                                        /* translators: 1: URL to Menus section of the customizer, 2: URL to Widgets section of the customizer */
     147                                                                        ' ' . __( 'See it in action with <a href="%1$s" class="load-customize">Menus</a> or <a href="%2$s" class="load-customize">Widgets</a>.' ),
     148                                                                        esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) ),
     149                                                                        esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'widgets' ) ), $customize_url ) )
     150                                                                );
    125151                                                        }
    126152                                                }
    127153                                        ?></p>
    128154                                </div>
    129155                                <div class="col">
    130                                         <h4><?php _e( 'JavaScript Library Updates' ); ?></h4>
     156                                        <h3><?php _e( 'JavaScript Library Updates' ); ?></h3>
    131157                                        <p><?php _e( 'jQuery 1.12.3, jQuery Migrate 1.4.0, Backbone 1.2.3, and Underscore 1.8.3 are bundled.' ); ?></p>
    132158                                </div>
    133159                        </div>
    134160
    135161                        <div class="under-the-hood two-col">
    136162                                <div class="col">
    137                                         <h4><?php _e( 'Script Loader Improvements' ); ?></h4>
    138                                         <p><?php printf( __( 'Better support has been added for script header/footer dependencies. New <code><a href="%s">wp_add_inline_script()</a></code> enables adding extra code to registered scripts.' ), 'https://make.wordpress.org/core/2016/03/08/enhanced-script-loader-in-wordpress-4-5/' ); ?></p>
     163                                        <h3><?php _e( 'Script Loader Improvements' ); ?></h3>
     164                                        <p><?php
     165                                                printf(
     166                                                        /* translators: %s: wp_add_inline_script() */
     167                                                        __( 'Better support has been added for script header/footer dependencies. New %s enables adding extra code to registered scripts.' ),
     168                                                        '<code><a href="https://make.wordpress.org/core/2016/03/08/enhanced-script-loader-in-wordpress-4-5/">wp_add_inline_script()</a></code>'
     169                                                );
     170                                        ?></p>
    139171                                </div>
    140172                                <div class="col">
    141                                         <h4><?php _e( 'Better Embed Templates' ); ?></h4>
    142                                         <p><?php printf( __( 'Embed templates have been split into parts and can be <a href="%s">directly overridden by themes</a> via the template hierarchy.' ), 'https://make.wordpress.org/core/2016/03/11/embeds-changes-in-wordpress-4-5/' ); ?></p>
     173                                        <h3><?php _e( 'Better Embed Templates' ); ?></h3>
     174                                        <p><?php
     175                                                printf(
     176                                                        /* translators: %s: URL to the development post of the new feature */
     177                                                        __( 'Embed templates have been split into parts and can be <a href="%s">directly overridden by themes</a> via the template hierarchy.' ),
     178                                                        'https://make.wordpress.org/core/2016/03/11/embeds-changes-in-wordpress-4-5/'
     179                                                );
     180                                        ?></p>
    143181                                </div>
    144182                        </div>
    145183
  • src/wp-admin/credits.php

    diff --git src/wp-admin/credits.php src/wp-admin/credits.php
    index 8457cd3..3b29c03 100644
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    2020
    2121<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
    2222
    23 <div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s makes your site more connected and responsive.' ), $display_version ); ?></div>
     23<div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s streamlines your workflow, whether you&#8217;re writing or building your site.' ), $display_version ); ?></div>
    2424
    2525<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
    2626
    __( 'Contributing Developers' ); 
    118118__( 'Cofounder, Project Lead' );
    119119__( 'Lead Developer' );
    120120__( 'Release Lead' );
     121__( 'Release Design Lead' );
     122__( 'Release Deputy' );
    121123__( 'Core Developer' );
    122124__( 'External Libraries' );
  • src/wp-admin/css/about.css

    diff --git src/wp-admin/css/about.css src/wp-admin/css/about.css
    index e2aac34..aad606f 100644
     
    109109        text-align: center;
    110110}
    111111
     112.about-wrap .changelog h2,
    112113.about-wrap h3 {
    113114        margin: 1.25em 0 .6em;
    114115        font-size: 1.25em;
    115116        line-height: 1.5em;
    116117}
    117118
    118 .about-wrap .changelog h3 {
     119.about-wrap .changelog h2 {
    119120        margin-top: 40px;
     121        font-weight: 600;
     122        text-align: left;
    120123}
    121124
    122125.about-wrap h4 {
    123126        color: #23282d;
    124127}
    125128
     129.about-wrap .changelog h3 {
     130        margin: 1.33em 0;
     131        font-size: 1em;
     132        line-height: inherit;
     133        color: #23282d;
     134}
     135
    126136.about-wrap code,
    127137.about-wrap ol li p {
    128138        font-size: 14px;
  • src/wp-admin/freedoms.php

    diff --git src/wp-admin/freedoms.php src/wp-admin/freedoms.php
    index 81b02d8..440f085 100644
    include( ABSPATH . 'wp-admin/admin-header.php' ); 
    1919
    2020<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
    2121
    22 <div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s makes your site more connected and responsive.' ), $display_version ); ?></div>
     22<div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s streamlines your workflow, whether you&#8217;re writing or building your site.' ), $display_version ); ?></div>
    2323
    2424<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
    2525