Make WordPress Core


Ignore:
Timestamp:
07/18/2019 01:32:13 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Editor: Replace external Classic Editor plugin URL with a link to Add Plugins screen with Classic Editor pre-selected.

This applies to messages displayed when JavaScript is disabled in Block Editor, or an incompatible meta box is used.

Props garrett-eclipse, derweili, afercia.
Fixes #47487.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r45619 r45657  
    416416                <?php
    417417                    $message = sprintf(
    418                         /* translators: %s: Classic Editor plugin URL */
     418                        /* translators: %s: A link to install the Classic Editor plugin. */
    419419                        __( 'The block editor requires JavaScript. Please enable JavaScript in your browser settings, or try the <a href="%s">Classic Editor plugin</a>.' ),
    420                         __( 'https://wordpress.org/plugins/classic-editor/' )
     420                        esc_url( wp_nonce_url( self_admin_url( 'plugin-install.php?tab=favorites&user=wordpressdotorg&save=0' ), 'save_wporg_username_' . get_current_user_id() ) )
    421421                    );
    422422
Note: See TracChangeset for help on using the changeset viewer.