Advertisement
Guest User

Untitled

a guest
Oct 26th, 2010
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  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.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement