From 8311a6f38b2e6d21ee6c05cb68cf07f4021c6b81 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 26 Jun 2017 03:50:44 +0200 Subject: [PATCH] Improve admin notice for when Debug Bar is not active Link to the plugin-install page instead which allows people to install *and* activate and doesn't presume they already have the Debug Bar installed, just not active. Props musamamasood --- debug-bar-cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug-bar-cron.php b/debug-bar-cron.php index eadd579..1942d6c 100644 --- a/debug-bar-cron.php +++ b/debug-bar-cron.php @@ -35,7 +35,7 @@ function debug_bar_cron_has_parent_plugin() { $file = plugin_basename( __FILE__ ); if ( is_admin() && ( ! class_exists( 'Debug_Bar' ) && current_user_can( 'activate_plugins' ) ) && is_plugin_active( $file ) ) { - add_action( 'admin_notices', create_function( null, 'echo \'

\', sprintf( __( \'Activation failed: Debug Bar must be activated to use the Debug Bar Cron Plugin. %sVisit your plugins page to activate.\', \'debug-bar-cron\' ), \'\' ), \'

\';' ) ); + add_action( 'admin_notices', create_function( null, 'echo \'

\', sprintf( __( \'Activation failed: Debug Bar must be activated to use the Debug Bar Cron Plugin. %sVisit your plugins page to install & activate.\', \'debug-bar-cron\' ), \'\' ), \'

\';' ) ); deactivate_plugins( $file, false, is_network_admin() );