Permalink
Browse files

added missing CSS fix for hiding menu item on completion

  • Loading branch information...
1 parent f9aaf2d commit 0390a036c5d885eb62e4e3f3c3ef54926fba92a1 @thomasgriffin thomasgriffin committed Jan 9, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 tgm-plugin-activation/class-tgm-plugin-activation.php
@@ -508,9 +508,11 @@ protected function do_plugin_install() {
/** Filter out any empty entries */
$complete = array_filter( $complete );
- /** All plugins are active, so we display the complete string */
- if ( empty( $complete ) )
+ /** All plugins are active, so we display the complete string and hide the plugin menu */
+ if ( empty( $complete ) ) {
echo '<p>' . sprintf( $this->strings['complete'], '<a href="' . admin_url() . '" title="' . __( 'Return to the Dashboard', $this->domain ) . '">' . __( 'Return to the Dashboard', $this->domain ) . '</a>' ) . '</p>';
+ echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
+ }
return true;
}

0 comments on commit 0390a03

Please sign in to comment.