error[] = ''.__('RECOMMENDED','theme-check').': '.__("No reference to nav_menu's was found in the theme. Note that if your theme has a menu bar, it is required to use the WordPress nav_menu functionality for it.", 'theme-check' ); } // Look for add_theme_support( 'menus' ). checkcount(); if ( preg_match( '/add_theme_support\s*\(\s?("|\')menus("|\')\s?\)/', $php ) ) { /* translators: 1: function found, 2: function to be used */ $this->error[] = '' . __( 'REQUIRED', 'theme-check') . ': ' . sprintf( __( 'Reference to %1$s was found in the theme. This should be removed and %2$s used instead.', 'theme-check' ), 'add_theme_support( "menus" )', 'register_nav_menus()' ); $ret = false; } return $ret; } function getError() { return $this->error; } } $themechecks[] = new NavMenuCheck;