Skip to content

Commit fc337d8

Browse files
committed
Merge pull request #208 from johnbillion/admin-bar
Remove the code that alters the `wp_admin_bar_render` hooks.
2 parents 3435b07 + c8dbfe0 commit fc337d8

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

class-tgm-plugin-activation.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,6 @@ public function init() {
233233
add_filter( 'install_plugin_complete_actions', array( $this, 'actions' ) );
234234
add_action( 'switch_theme', array( $this, 'flush_plugins_cache' ) );
235235

236-
// Load admin bar in the header to remove flash when installing plugins.
237-
if ( $this->is_tgmpa_page() ) {
238-
remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
239-
remove_action( 'admin_footer', 'wp_admin_bar_render', 1000 );
240-
add_action( 'wp_head', 'wp_admin_bar_render', 1000 );
241-
add_action( 'admin_head', 'wp_admin_bar_render', 1000 );
242-
}
243-
244236
if ( $this->has_notices ) {
245237
add_action( 'admin_notices', array( $this, 'notices' ) );
246238
add_action( 'admin_init', array( $this, 'admin_init' ), 1 );
@@ -2217,4 +2209,4 @@ public function after_flush_output() {
22172209
}
22182210

22192211
}
2220-
}
2212+
}

0 commit comments

Comments
 (0)