Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 26th, 2010  |  syntax: PHP  |  size: 0.38 KB  |  views: 152  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.                 if($show_option_all_included)
  2.                 {
  3.                         $show_option_all = apply_filters( 'list_cats', $show_option_all_included );
  4.                         $selected = ( '0' === strval($r['selected']) ) ? " selected='selected'" : '';
  5.                         $vals = '';
  6.                         foreach($categories as $cat)
  7.                                 $vals .= $cat->term_id.',';
  8.                         $vals = substr($vals, 0, -1);
  9.                         $output .= "\t<option value='$vals'$selected>$show_option_all</option>\n";
  10.                 }