Skip to content

Commit

Permalink
Merge 8311a6f into 35c1cdb
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Jun 26, 2017
2 parents 35c1cdb + 8311a6f commit c56dd78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug-bar-cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 \'<div class="error"><p>\', sprintf( __( \'Activation failed: Debug Bar must be activated to use the <strong>Debug Bar Cron</strong> Plugin. %sVisit your plugins page to activate.\', \'debug-bar-cron\' ), \'<a href="\' . esc_url( admin_url( \'plugins.php#debug-bar\' ) ) . \'">\' ), \'</a></p></div>\';' ) );
add_action( 'admin_notices', create_function( null, 'echo \'<div class="error"><p>\', sprintf( __( \'Activation failed: Debug Bar must be activated to use the <strong>Debug Bar Cron</strong> Plugin. %sVisit your plugins page to install & activate.\', \'debug-bar-cron\' ), \'<a href="\' . esc_url( admin_url( \'plugin-install.php?tab=search&s=debug+bar\' ) ) . \'">\' ), \'</a></p></div>\';' ) );

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

Expand Down

0 comments on commit c56dd78

Please sign in to comment.