Make WordPress Core

Changeset 43937


Ignore:
Timestamp:
11/22/2018 03:23:46 PM (5 years ago)
Author:
lonelyvegan
Message:

Help/About: Add copy for new block editor.

Adds information about the new block editor (Gutenberg) and the Classic Editor
to the about page.

Props @pixelverbieger, @ocean90, @melchoyce, @boemedia, @sami.keijonen, @TimothyBlynJacobs, @xkon, @afercia, @Otto42, @pento.
Fixes #45178.

Location:
branches/5.0/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-admin/about.php

    r43922 r43937  
    3636        ) : ?>
    3737            <div class="about-text" style="font-style:italic;">
    38                 <?php printf( __( 'The Gutenberg plugin has been deactivated, as the features are now included in WordPress %1$s by default. If you&#8217;d like to continue to test the upcoming changes in the WordPress editing experience, please %2$sreactivate the Gutenberg plugin%3$s.' ), $display_version, '<a href="' . esc_url( self_admin_url( 'plugins.php?s=gutenberg&plugin_status=all' ) ) . '">', '</a>' ); ?>
     38                <?php
     39                printf(
     40                    /* translators: 1: WordPress version, 2: HTML start tag of link, 3: HTML end tag of link */
     41                    __( 'The Gutenberg plugin has been deactivated, as the features are now included in WordPress %1$s by default. If you&#8217;d like to continue to test the upcoming changes in the WordPress editing experience, please %2$sreactivate the Gutenberg plugin%3$s.' ),
     42                    $display_version,
     43                    '<a href="' . esc_url( self_admin_url( 'plugins.php?s=gutenberg&plugin_status=all' ) ) . '">',
     44                    '</a>'
     45                );
     46                ?>
    3947            </div>
    4048        <?php else : ?>
     
    220228        </div>
    221229
    222         <div class="feature-section one-col cta">
    223             <div class="col">
    224                 <a class="button button-primary button-hero" href="<?php echo esc_url( admin_url( 'post-new.php' ) ); ?>"><?php _e( 'Build your first post' ); ?></a>
    225             </div>
    226         </div>
     230        <?php if ( current_user_can( 'edit_posts' ) ) { ?>
     231            <div class="feature-section one-col cta">
     232                <div class="col">
     233                    <a class="button button-primary button-hero" href="<?php echo esc_url( admin_url( 'post-new.php' ) ); ?>"><?php _e( 'Build your first post' ); ?></a>
     234                </div>
     235            </div>
     236        <?php } ?>
     237
    227238
    228239        <hr />
     
    265276        </div>
    266277
    267         <div class="feature-section one-col cta">
    268             <div class="col">
    269                 <a class="button button-primary button-hero load-customize hide-if-no-customize" href="<?php echo esc_url( admin_url( 'customize.php?theme=twentynineteen' ) ); ?>"><?php _e( 'Give Twenty Nineteen a try' ); ?></a>
    270             </div>
    271         </div>
     278        <?php if ( current_user_can( 'customize' ) ) { ?>
     279            <div class="feature-section one-col cta">
     280                <div class="col">
     281                    <a class="button button-primary button-hero load-customize hide-if-no-customize" href="<?php echo esc_url( admin_url( 'customize.php?theme=twentynineteen' ) ); ?>"><?php _e( 'Give Twenty Nineteen a try' ); ?></a>
     282                </div>
     283            </div>
     284        <?php } ?>
    272285
    273286        <hr />
     
    316329                <p><?php _e( 'Prefer to stick with the familiar Classic Editor? No problem! Support for the Classic Editor plugin will remain in WordPress until 2021.' ); ?></p>
    317330                <p><?php _e( 'The Classic Editor plugin restores the previous WordPress editor and the Edit Post screen. It lets you keep using plugins that extend it, add old-style meta boxes, or otherwise depend on the previous editor. To install, visit your plugins page and click the “Install Now” button next to “Classic Editor.” After the plugin finishes installing, click “Activate.” That’s it! ' ); ?></p>
    318                 <p><?php _e( 'Note to users of assistive technology: if you experience usability issues with Gutenberg, we recommend you continue to use the Classic Editor.' ); ?></p>
    319                 <div class="col cta">
    320                     <a class="button button-primary button-hero" href="<?php echo esc_url( self_admin_url( 'plugin-install.php?tab=featured' ) ); ?>"><?php _e( 'Install the Classic Editor' ); ?></a>
    321                 </div>
     331                <p><?php _e( 'Note to users of assistive technology: if you experience usability issues with the block editor, we recommend you continue to use the Classic Editor.' ); ?></p>
     332                <?php if ( current_user_can( 'install_plugins' ) ) { ?>
     333                    <div class="col cta">
     334                        <a class="button button-primary button-hero" href="<?php echo esc_url( self_admin_url( 'plugin-install.php?tab=featured' ) ); ?>"><?php _e( 'Install the Classic Editor' ); ?></a>
     335                    </div>
     336                <?php } ?>
    322337            </div>
    323338        </div>
  • branches/5.0/src/wp-admin/credits.php

    r43098 r43937  
    2121<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
    2222
    23 <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s will smooth your design workflow and keep you safe from coding errors.' ), $display_version ); ?></p>
     23<p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s introduces a robust new content creation experience.' ), $display_version ); ?></p>
    2424
    2525<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
  • branches/5.0/src/wp-admin/freedoms.php

    r43098 r43937  
    2323<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
    2424
    25 <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s will smooth your design workflow and keep you safe from coding errors.' ), $display_version ); ?></p>
     25<p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s introduces a robust new content creation experience.' ), $display_version ); ?></p>
    2626
    2727<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
Note: See TracChangeset for help on using the changeset viewer.