Permalink
Browse files

small check for changed menu-variable

  • Loading branch information...
1 parent f5987ed commit 2ccc29ff3a19e8b46525c2b1aa4e3c10011fbba6 @bueltge committed Dec 20, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 remove-comments-absolute.php
@@ -6,11 +6,11 @@
* Domain Path: /languages
* Description: Deactivate comments functions and remove areas absolutely from the WordPress install
* Author: Frank Bültge
- * Version: 0.0.5
- * Licence: GPLv2
+ * Version: 0.0.6
+ * Licence: GPLv3
* Author URI: http://bueltge.de/
* Upgrade Check: none
- * Last Change: 02.12.2011
+ * Last Change: 20.12.2011
*/
if ( ! class_exists( 'Remove_Comments_Absolute' ) ) {
@@ -169,7 +169,8 @@ public function remove_menu_items () {
*/
function add_menu_classes ( $menu ) {
- $menu[20][4] .= ' menu-top-last';
+ if ( isset( $menu[20][4] ) )
+ $menu[20][4] .= ' menu-top-last';
return $menu;
}

0 comments on commit 2ccc29f

Please sign in to comment.