Make WordPress Core


Ignore:
Timestamp:
07/24/2018 03:04:03 AM (6 years ago)
Author:
pento
Message:

Dashboard: Improve "Try Gutenberg" subheading appearance for long headings.

When translated, the callout subheadings can wrap onto a new line, which caused them to overlap the paragraph text.

Props earnjam, fierevere.
Fixes #44611.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9/src/wp-admin/includes/dashboard.php

    r43522 r43523  
    16791679            <div class="try-gutenberg-panel-column plugin-card-gutenberg">
    16801680
    1681                 <h3><?php _e( 'Test the new editor today.' ); ?></h3>
    1682 
    1683                 <p>
    1684                     <?php _e( "You can take Gutenberg for a spin (and share your feedback, if you’d like) before we officially release it, by installing it as a plugin." ); ?>
    1685                     <?php
    1686                         printf(
    1687                             /* translators: 1: Gutenberg call for testing handbook link, 2: Gutenberg GitHub repository issues link, 3: Gutenberg GitHub repository CONTRIBUTING.md link */
    1688                             __( 'You can help by <a href="%1$s">testing</a>, <a href="%2$s">filing bugs</a>, or contributing on the <a href="%3$s">GitHub repository</a>.' ),
    1689                             'https://make.wordpress.org/test/handbook/call-for-testing/gutenberg-testing/',
    1690                             'https://github.com/WordPress/gutenberg/issues',
    1691                             'https://github.com/WordPress/gutenberg/blob/master/CONTRIBUTING.md'
    1692                         );
    1693                     ?>
    1694                 </p>
     1681                <div>
     1682                    <h3><?php _e( 'Test the new editor today.' ); ?></h3>
     1683
     1684                    <p>
     1685                        <?php _e( "You can take Gutenberg for a spin (and share your feedback, if you’d like) before we officially release it, by installing it as a plugin." ); ?>
     1686                        <?php
     1687                            printf(
     1688                                /* translators: 1: Gutenberg call for testing handbook link, 2: Gutenberg GitHub repository issues link, 3: Gutenberg GitHub repository CONTRIBUTING.md link */
     1689                                __( 'You can help by <a href="%1$s">testing</a>, <a href="%2$s">filing bugs</a>, or contributing on the <a href="%3$s">GitHub repository</a>.' ),
     1690                                'https://make.wordpress.org/test/handbook/call-for-testing/gutenberg-testing/',
     1691                                'https://github.com/WordPress/gutenberg/issues',
     1692                                'https://github.com/WordPress/gutenberg/blob/master/CONTRIBUTING.md'
     1693                            );
     1694                        ?>
     1695                    </p>
     1696                </div>
    16951697
    16961698                    <?php if ( $action ) { ?>
     
    17121714            <div class="try-gutenberg-panel-column plugin-card-classic-editor">
    17131715
    1714                 <h3><?php _e( 'Not quite ready?' ); ?></h3>
    1715 
    1716                 <p>
    1717                     <?php _e( 'The new editor will be enabled by default in the next major release of WordPress. If you’re not sure how compatible your current themes and plugins are, we’ve got you covered.' ); ?>
    1718                     <?php
    1719                         printf(
    1720                             /* translators: Link to the Classic Editor plugin page */
    1721                             __( 'Install the <a href="%s">Classic Editor plugin</a> to keep using the current editor until you’re ready to make the switch.' ),
    1722                             __( 'https://wordpress.org/plugins/classic-editor' )
    1723                         );
    1724                     ?>
    1725                 </p>
     1716                <div>
     1717                    <h3><?php _e( 'Not quite ready?' ); ?></h3>
     1718
     1719                    <p>
     1720                        <?php _e( 'The new editor will be enabled by default in the next major release of WordPress. If you’re not sure how compatible your current themes and plugins are, we’ve got you covered.' ); ?>
     1721                        <?php
     1722                            printf(
     1723                                /* translators: Link to the Classic Editor plugin page */
     1724                                __( 'Install the <a href="%s">Classic Editor plugin</a> to keep using the current editor until you’re ready to make the switch.' ),
     1725                                __( 'https://wordpress.org/plugins/classic-editor' )
     1726                            );
     1727                        ?>
     1728                    </p>
     1729                </div>
    17261730
    17271731                <?php if ( $classic_action ) { ?>
Note: See TracChangeset for help on using the changeset viewer.