Changeset 54 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
- Timestamp:
- 07/08/2013 05:34:39 PM (12 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
r53 r54 242 242 'posts_per_page' => -1, 243 243 'orderby' => 'date', 244 'order' => 'desc', 244 245 ), $attr ); 245 246 246 247 $attr['show_avatars'] = $this->str_to_bool( $attr['show_avatars'] ); 247 248 $attr['orderby'] = ( in_array( $attr['orderby'], array( 'date', 'title', 'rand' ) ) ) ? $attr['orderby'] : 'date'; 249 $attr['order'] = ( in_array( $attr['order'], array( 'asc', 'desc') ) ) ? $attr['order'] : 'desc'; 248 250 249 251 $speakers = new WP_Query( array( … … 251 253 'posts_per_page' => intval( $attr['posts_per_page'] ), 252 254 'orderby' => $attr['orderby'], 255 'order' => $attr['order'], 253 256 ) ); 254 257
Note: See TracChangeset
for help on using the changeset viewer.