Changeset 799
- Timestamp:
- 08/15/2014 10:36:30 PM (11 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
r788 r799 812 812 'speaker_link' => 'wporg', // anchor|wporg|permalink|none 813 813 'posts_per_page' => -1, 814 'orderby' => 'date', 814 'orderby' => 'date', // date|title|rand 815 'order' => 'desc', // asc|desc 815 816 ), $attr ); 816 817 … … 827 828 828 829 $attr['orderby'] = ( in_array( $attr['orderby'], array( 'date', 'title', 'rand' ) ) ) ? $attr['orderby'] : 'date'; 830 831 if ( 'asc' != $attr['order'] ) { 832 $attr['order'] = 'desc'; 833 } 829 834 830 835 $args = array( … … 833 838 'tax_query' => array(), 834 839 'orderby' => $attr['orderby'], 840 'order' => $attr['order'], 835 841 836 842 // Only ones marked "session" or where the meta key does
Note: See TracChangeset
for help on using the changeset viewer.