Advertisement
Guest User

ulfben

a guest
Jun 25th, 2010
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. /*fixes Advanced Category Excluder breaking wp_list_pages and wp_page_menu by ignoring the exclude-parameter*/
  2. function ace_list_pages_excludes($excludes)
  3. {
  4.     $filter = ace_get_section();
  5.         $posts_to_exclude = get_option("ace_page_sections_".$filter);
  6.     $posts_to_exclude = array_merge($excludes, explode(",", $posts_to_exclude));
  7.     return $posts_to_exclude;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement