diff --git a/debug-bar-cron.php b/debug-bar-cron.php index 9e2c730..9b5bdfa 100644 --- a/debug-bar-cron.php +++ b/debug-bar-cron.php @@ -27,6 +27,19 @@ exit(); } +if ( ! function_exists( 'debug_bar_cron_print_parent_plugin_notice' ) ) { + /** + * Show admin notice + */ + function debug_bar_cron_print_parent_plugin_notice() { + $plugin_url = admin_url( 'plugin-install.php?tab=search&s=debug+bar' ); + echo '
'; + printf( __( 'Activation failed: Debug Bar must be activated to use the Debug Bar Cron Plugin. %sVisit your plugins page to install & activate.', 'debug-bar-cron' ), '' ); + 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\' ), \'\' ), \'