Skip to content

Commit

Permalink
Merge pull request #520 from TGMPA/feature/revert-themecheck-hack
Browse files Browse the repository at this point in the history
Revert "Bypass latest Theme Check update for add_submenu_page calls."
  • Loading branch information
GaryJones committed Jan 10, 2016
2 parents 5dbb017 + 961b761 commit 0193eae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions class-tgm-plugin-activation.php
Original file line number Diff line number Diff line change
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 0193eae

Please sign in to comment.