Making WordPress.org

Ticket #1016: wc-post-types.diff

File wc-post-types.diff, 650 bytes (added by pixolin, 9 years ago)

Sorry for sending the diff file with wrong file extension. :)

  • wc-post-types.php

     
    278278
    279279                $attr['show_avatars'] = $this->str_to_bool( $attr['show_avatars'] );
    280280                $attr['orderby'] = ( in_array( $attr['orderby'], array( 'date', 'title', 'rand' ) ) ) ? $attr['orderby'] : 'date';
     281                $attr['order'] = strtolower( $attr['order'] );
    281282                $attr['order'] = ( in_array( $attr['order'], array( 'asc', 'desc') ) ) ? $attr['order'] : 'desc';
    282283                $attr['speaker_link'] = ( in_array( $attr['speaker_link'], array( 'permalink' ) ) ) ? $attr['speaker_link'] : '';
    283284