Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/19/2015 04:45:02 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Templates: Micro-optimizations:

  • Remove trailing ?> tag in some template parts
  • Remove preceding ?> <?php in some template parts, after phpdoc header
  • Remove whitespace where superfluous
  • Reduce number of indentations in some template parts
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/content-single-user.php

    r4836 r5689  
    1515
    1616    <div id="bbp-user-wrapper">
     17
    1718        <?php bbp_get_template_part( 'user', 'details' ); ?>
    1819
    1920        <div id="bbp-user-body">
    20             <?php if ( bbp_is_favorites()                 ) bbp_get_template_part( 'user', 'favorites'       ); ?>
    21             <?php if ( bbp_is_subscriptions()             ) bbp_get_template_part( 'user', 'subscriptions'   ); ?>
    22             <?php if ( bbp_is_single_user_topics()        ) bbp_get_template_part( 'user', 'topics-created'  ); ?>
    23             <?php if ( bbp_is_single_user_replies()       ) bbp_get_template_part( 'user', 'replies-created' ); ?>
    24             <?php if ( bbp_is_single_user_edit()          ) bbp_get_template_part( 'form', 'user-edit'       ); ?>
    25             <?php if ( bbp_is_single_user_profile()       ) bbp_get_template_part( 'user', 'profile'         ); ?>
     21            <?php if ( bbp_is_favorites()           ) bbp_get_template_part( 'user', 'favorites'       ); ?>
     22            <?php if ( bbp_is_subscriptions()       ) bbp_get_template_part( 'user', 'subscriptions'   ); ?>
     23            <?php if ( bbp_is_single_user_topics()  ) bbp_get_template_part( 'user', 'topics-created'  ); ?>
     24            <?php if ( bbp_is_single_user_replies() ) bbp_get_template_part( 'user', 'replies-created' ); ?>
     25            <?php if ( bbp_is_single_user_edit()    ) bbp_get_template_part( 'form', 'user-edit'       ); ?>
     26            <?php if ( bbp_is_single_user_profile() ) bbp_get_template_part( 'user', 'profile'         ); ?>
    2627        </div>
    2728    </div>
Note: See TracChangeset for help on using the changeset viewer.