Ticket #1016: wc-post-types.diff
File wc-post-types.diff, 650 bytes (added by , 9 years ago) |
---|
-
wc-post-types.php
278 278 279 279 $attr['show_avatars'] = $this->str_to_bool( $attr['show_avatars'] ); 280 280 $attr['orderby'] = ( in_array( $attr['orderby'], array( 'date', 'title', 'rand' ) ) ) ? $attr['orderby'] : 'date'; 281 $attr['order'] = strtolower( $attr['order'] ); 281 282 $attr['order'] = ( in_array( $attr['order'], array( 'asc', 'desc') ) ) ? $attr['order'] : 'desc'; 282 283 $attr['speaker_link'] = ( in_array( $attr['speaker_link'], array( 'permalink' ) ) ) ? $attr['speaker_link'] : ''; 283 284