WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/18/2019 01:32:13 AM (21 months 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/includes/template.php

    r45618 r45657  
    11101110        if ( current_user_can( 'install_plugins' ) ) {
    11111111            echo '<p>';
    1112             /* translators: %s: A link to install the Classic Editor plugin. */
    1113             printf( __( 'Please install the <a href="%s">Classic Editor plugin</a> to use this meta box.' ), esc_url( self_admin_url( 'plugin-install.php?tab=featured' ) ) );
     1112            printf(
     1113                /* translators: %s: A link to install the Classic Editor plugin. */
     1114                __( 'Please install the <a href="%s">Classic Editor plugin</a> to use this meta box.' ),
     1115                esc_url( wp_nonce_url( self_admin_url( 'plugin-install.php?tab=favorites&user=wordpressdotorg&save=0' ), 'save_wporg_username_' . get_current_user_id() ) )
     1116            );
    11141117            echo '</p>';
    11151118        }
Note: See TracChangeset for help on using the changeset viewer.