Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/09/2014 11:58:59 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Brackets and code formatting improvements to admin component.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/functions.php

    r5401 r5440  
    5454 */
    5555function bbp_admin_custom_menu_order( $menu_order = false ) {
    56         if ( false === bbpress()->admin->show_separator )
     56        if ( false === bbpress()->admin->show_separator ) {
    5757                return $menu_order;
     58        }
    5859
    5960        return true;
     
    7273
    7374        // Bail if user cannot see any top level bbPress menus
    74         if ( empty( $menu_order ) || ( false === bbpress()->admin->show_separator ) )
     75        if ( empty( $menu_order ) || ( false === bbpress()->admin->show_separator ) ) {
    7576                return $menu_order;
     77        }
    7678
    7779        // Initialize our custom order array
     
    131133
    132134        // Bail if not on an admin page and not getting a sample permalink
    133         if ( !empty( $sample ) && is_admin() && bbp_is_custom_post_type() )
     135        if ( !empty( $sample ) && is_admin() && bbp_is_custom_post_type() ) {
    134136                return urldecode( $post_link );
     137        }
    135138
    136139        // Return post link
     
    175178 */
    176179function bbp_do_uninstall( $site_id = 0 ) {
    177         if ( empty( $site_id ) )
     180        if ( empty( $site_id ) ) {
    178181                $site_id = get_current_blog_id();
     182        }
    179183
    180184        switch_to_blog( $site_id );
     
    241245
    242246        // This tweaks the Tools subnav menu to only show one bbPress menu item
    243         if ( ! in_array( $plugin_page, array( 'bbp-settings' ) ) )
     247        if ( ! in_array( $plugin_page, array( 'bbp-settings' ) ) ) {
    244248                $submenu_file = 'bbp-repair';
     249        }
    245250}
    246251
Note: See TracChangeset for help on using the changeset viewer.