Changeset 5567
- Timestamp:
- 06/15/2017 11:53:46 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
r5547 r5567 419 419 'posts_per_page' => -1, 420 420 'orderby' => 'date', 421 'order' => 'desc', 421 422 'teams' => '', 422 423 ), $attr ); … … 425 426 $attr['orderby'] = strtolower( $attr['orderby'] ); 426 427 $attr['orderby'] = ( in_array( $attr['orderby'], array( 'date', 'title', 'rand' ) ) ) ? $attr['orderby'] : 'date'; 428 $attr['order'] = strtolower( $attr['order'] ); 429 $attr['order'] = ( in_array( $attr['order'], array( 'asc', 'desc' ), true ) ) ? $attr['order'] : 'desc'; 427 430 428 431 $query_args = array( 429 'post_type' => 'wcb_organizer',432 'post_type' => 'wcb_organizer', 430 433 'posts_per_page' => intval( $attr['posts_per_page'] ), 431 'orderby' => $attr['orderby'], 434 'orderby' => $attr['orderby'], 435 'order' => $attr['order'], 432 436 ); 433 437
Note: See TracChangeset
for help on using the changeset viewer.