Classic Editor plugin.' ),
esc_url( $plugin_activate_url )
);
} else {
// If Classic Editor is not installed, provide a link to install it.
$installed = false;
$plugin_install_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=classic-editor' ), 'install-plugin_classic-editor' );
$message = sprintf(
/* translators: %s: Link to install the Classic Editor plugin. */
__( 'The block editor requires JavaScript. Please enable JavaScript in your browser settings, or install the
Classic Editor plugin.' ),
esc_url( $plugin_install_url )
);
}
/**
* Filters the message displayed in the block editor interface when JavaScript is
* not enabled in the browser.
*
* @since 5.0.3
* @since 6.4.0 Added `$installed` parameter.
*
* @param string $message The message being displayed.
* @param WP_Post $post The post being edited.
* @param bool $installed Whether the classic editor is installed.
*/
$message = apply_filters( 'block_editor_no_javascript_message', $message, $post, $installed );
wp_admin_notice(
$message,
array(
'type' => 'error',
)
);
?>