Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made having a null value for safer, defaults to bottom if no value set

  • Loading branch information...
commit 18f125632f250a63a6928d3fb59321da11b924d8 1 parent 85c3da6
@tmtrademark authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cheezcap.php
View
2  cheezcap.php
@@ -59,7 +59,7 @@ function cap_add_admin() {
}
$pgName = "$themename Settings";
- $hook = add_menu_page( $pgName, $pgName, isset( $req_cap_to_edit ) ? $req_cap_to_edit : 'manage_options', basename( __FILE__ ), 'top_level_settings', isset( $cap_icon_url ) ? $cap_icon_url : $default, $cap_menu_position );
+ $hook = add_menu_page( $pgName, $pgName, isset( $req_cap_to_edit ) ? $req_cap_to_edit : 'manage_options', basename( __FILE__ ), 'top_level_settings', isset( $cap_icon_url ) ? $cap_icon_url : $default, isset( $cap_menu_position ) ? $cap_menu_position : $default );
add_action( "admin_print_scripts-$hook", 'cap_admin_js_libs' );
add_action( "admin_footer-$hook", 'cap_admin_js_footer' );
add_action( "admin_print_styles-$hook", 'cap_admin_css' );
Please sign in to comment.
Something went wrong with that request. Please try again.