diff --git wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
index fb2f2f34..696a0539 100644
|
|
|
class WordCamp_Post_Types_Plugin { |
| 413 | 413 | 'avatar_size' => 100, |
| 414 | 414 | 'posts_per_page' => -1, |
| 415 | 415 | 'orderby' => 'date', |
| | 416 | 'order' => 'desc', |
| 416 | 417 | 'teams' => '', |
| 417 | 418 | ), $attr ); |
| 418 | 419 | |
| 419 | 420 | $attr['show_avatars'] = $this->str_to_bool( $attr['show_avatars'] ); |
| 420 | 421 | $attr['orderby'] = strtolower( $attr['orderby'] ); |
| 421 | 422 | $attr['orderby'] = ( in_array( $attr['orderby'], array( 'date', 'title', 'rand' ) ) ) ? $attr['orderby'] : 'date'; |
| | 423 | $attr['order'] = ( in_array( $attr['order'], array( 'asc', 'desc' ), true ) ) ? $attr['order'] : 'desc'; |
| 422 | 424 | |
| 423 | 425 | $query_args = array( |
| 424 | 426 | 'post_type' => 'wcb_organizer', |
| 425 | 427 | 'posts_per_page' => intval( $attr['posts_per_page'] ), |
| 426 | 428 | 'orderby' => $attr['orderby'], |
| | 429 | 'order' => $attr['order'], |
| 427 | 430 | ); |
| 428 | 431 | |
| 429 | 432 | if ( ! empty( $attr['teams'] ) ) { |