Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/19/2011 09:05:10 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Add some brackets to improve readability in bbp-reply-template.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-reply-template.php

    r3325 r3332  
    8787
    8888        // What are the default allowed statuses (based on user caps)
    89         if ( bbp_get_view_all( 'edit_others_replies' ) )
     89        if ( bbp_get_view_all( 'edit_others_replies' ) ) {
    9090            $default_status = join( ',', array( 'publish', $bbp->closed_status_id, $bbp->spam_status_id, 'trash' ) );
     91        }
    9192    }
    9293
     
    140141
    141142        // If pretty permalinks are enabled, make our pagination pretty
    142         if ( $wp_rewrite->using_permalinks() )
     143        if ( $wp_rewrite->using_permalinks() ) {
    143144               
    144145            // Page or single
    145             if ( is_page() || is_single() )
     146            if ( is_page() || is_single() ) {
    146147                $base = user_trailingslashit( trailingslashit( get_permalink() ) . 'page/%#%/' );
    147148
    148149            // Topic
    149             else
     150            } else {
    150151                $base = user_trailingslashit( trailingslashit( get_permalink( bbp_get_topic_id() ) ) . 'page/%#%/' );
    151 
    152         else
     152            }
     153
     154        // Unpretty permalinks
     155        } else {
    153156            $base = add_query_arg( 'paged', '%#%' );
     157        }
    154158
    155159        // Pagination settings with filter
Note: See TracChangeset for help on using the changeset viewer.