From d7f0957d65756cac7564de0734565ee330dcabe5 Mon Sep 17 00:00:00 2001 From: Tusko Date: Mon, 9 Mar 2020 14:09:28 +0200 Subject: [PATCH 1/2] changed url for Classic Editor direct install in admin notice --- admin/qtx_activation_hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/qtx_activation_hook.php b/admin/qtx_activation_hook.php index 3f279ef5..87aad609 100644 --- a/admin/qtx_activation_hook.php +++ b/admin/qtx_activation_hook.php @@ -868,7 +868,7 @@ function qtranxf_admin_notices_block_editor() { ! ( class_exists( 'Classic_Editor' ) || is_plugin_active( 'disable-gutenberg/disable-gutenberg.php' ) || is_plugin_active( 'no-gutenberg/no-gutenberg.php' ) ) ) { - $link = "https://wordpress.org/plugins/classic-editor/"; + $link = admin_url('plugin-install.php?tab=plugin-information&plugin=classic-editor'); ?>

Classic Editor plugin.', 'qtranslate' ), 'qTranslate‑XT', $link ); ?>

From 74ae3b07fba5c6d65262dda8d3dd108614690fa5 Mon Sep 17 00:00:00 2001 From: HerrVigg Date: Mon, 9 Mar 2020 22:13:58 +0100 Subject: [PATCH 2/2] Reformat PHP --- admin/qtx_activation_hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 admin/qtx_activation_hook.php diff --git a/admin/qtx_activation_hook.php b/admin/qtx_activation_hook.php old mode 100644 new mode 100755 index 87aad609..0c13c935 --- a/admin/qtx_activation_hook.php +++ b/admin/qtx_activation_hook.php @@ -868,7 +868,7 @@ function qtranxf_admin_notices_block_editor() { ! ( class_exists( 'Classic_Editor' ) || is_plugin_active( 'disable-gutenberg/disable-gutenberg.php' ) || is_plugin_active( 'no-gutenberg/no-gutenberg.php' ) ) ) { - $link = admin_url('plugin-install.php?tab=plugin-information&plugin=classic-editor'); + $link = admin_url( 'plugin-install.php?tab=plugin-information&plugin=classic-editor' ); ?>

Classic Editor plugin.', 'qtranslate' ), 'qTranslate‑XT', $link ); ?>