Skip to content

Commit

Permalink
Merge 961b761 into 5dbb017
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Jan 10, 2016
2 parents 5dbb017 + 961b761 commit 865d36b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions class-tgm-plugin-activation.php
Expand Up @@ -618,8 +618,7 @@ protected function add_admin_menu( array $args ) {
if ( 'themes.php' === $this->parent_slug ) {
$this->page_hook = call_user_func( 'add_theme_page', $args['page_title'], $args['menu_title'], $args['capability'], $args['menu_slug'], $args['function'] );
} else {
$type = 'submenu';
$this->page_hook = call_user_func( "add_{$type}_page", $args['parent_slug'], $args['page_title'], $args['menu_title'], $args['capability'], $args['menu_slug'], $args['function'] );
$this->page_hook = call_user_func( 'add_submenu_page', $args['parent_slug'], $args['page_title'], $args['menu_title'], $args['capability'], $args['menu_slug'], $args['function'] );
}
}

Expand Down

0 comments on commit 865d36b

Please sign in to comment.