Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* throws warning */
- public function nav_menu_locations($menus) {
- if (is_array($menus))
- $theme = get_option('stylesheet');
- foreach ($menus as $loc => $menu) {
- if (!empty($this->options['nav_menus'][$theme][$loc][$this->curlang->slug]))
- $menus[$loc] = $this->options['nav_menus'][$theme][$loc][$this->curlang->slug];
- }
- return $menus;
- }
- /* no warnings */
- public function nav_menu_locations($menus) {
- if (is_array($menus)) {
- $theme = get_option('stylesheet');
- foreach ($menus as $loc => $menu) {
- if (!empty($this->options['nav_menus'][$theme][$loc][$this->curlang->slug]))
- $menus[$loc] = $this->options['nav_menus'][$theme][$loc][$this->curlang->slug];
- }
- }
- return $menus;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement