Making WordPress.org

Changeset 1538


Ignore:
Timestamp:
05/04/2015 06:58:41 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Remove unnecessary parenthesis to improve readability.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php

    r1537 r1538  
    278278
    279279        $attr['show_avatars'] = $this->str_to_bool( $attr['show_avatars'] );
    280         $attr['orderby']      = ( in_array( $attr['orderby'],      array( 'date', 'title', 'rand' ) ) ) ? $attr['orderby']      : 'date';
    281         $attr['order']        = ( in_array( $attr['order'],        array( 'asc', 'desc'           ) ) ) ? $attr['order']        : 'desc';
    282         $attr['speaker_link'] = ( in_array( $attr['speaker_link'], array( 'permalink'             ) ) ) ? $attr['speaker_link'] : '';
     280        $attr['orderby']      = in_array( $attr['orderby'],      array( 'date', 'title', 'rand' ) ) ? $attr['orderby']      : 'date';
     281        $attr['order']        = in_array( $attr['order'],        array( 'asc', 'desc'          ) ) ? $attr['order']        : 'desc';
     282        $attr['speaker_link'] = in_array( $attr['speaker_link'], array( 'permalink'            ) ) ? $attr['speaker_link'] : '';
    283283
    284284        /*
Note: See TracChangeset for help on using the changeset viewer.