1 | Index: wc-post-types.php |
---|
2 | =================================================================== |
---|
3 | --- wc-post-types.php (revision 1536) |
---|
4 | +++ wc-post-types.php (working copy) |
---|
5 | @@ -278,6 +278,7 @@ |
---|
6 | |
---|
7 | $attr['show_avatars'] = $this->str_to_bool( $attr['show_avatars'] ); |
---|
8 | $attr['orderby'] = ( in_array( $attr['orderby'], array( 'date', 'title', 'rand' ) ) ) ? $attr['orderby'] : 'date'; |
---|
9 | + $attr['order'] = strtolower( $attr['order'] ); |
---|
10 | $attr['order'] = ( in_array( $attr['order'], array( 'asc', 'desc') ) ) ? $attr['order'] : 'desc'; |
---|
11 | $attr['speaker_link'] = ( in_array( $attr['speaker_link'], array( 'permalink' ) ) ) ? $attr['speaker_link'] : ''; |
---|
12 | |
---|