Permalink
Browse files

.

  • Loading branch information...
1 parent c3699ef commit 8e53ca6ee0fa6048d1cf1328cf84110aab441e4a @leemason committed Jun 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 options/options.php
View
@@ -224,7 +224,7 @@ function _options_page(){
if(true === $this->args['allow_sub_menu']){
//this is needed to remove the top level menu item from showing in the submenu
- add_submenu_page($this->args['page_slug'],$this->args['page_title'],'',$this->args['page_cap'],$this->args['page_slug'],'__return_null');
+ add_submenu_page($this->args['page_slug'],$this->args['page_title'],'',$this->args['page_cap'],$this->args['page_slug'],create_function( '$a', "return null;" ));
foreach($this->sections as $k => $section){

0 comments on commit 8e53ca6

Please sign in to comment.