Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/22/2012 09:52:50 AM (13 years ago)
Author:
johnjamesjacoby
Message:

User Edit:

  • Add missing bbp_is_user_home_edit() function and use where appropriate.
  • Add bbp_is_user_home_edit() checks to is_bbpress() and body class.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-theme-compat/bbpress/form-user-edit.php

    r3881 r3918  
    7272    </fieldset>
    7373
    74     <h2 class="entry-title"><?php bbp_is_user_home() ? _e( 'About Yourself', 'bbpress' ) : _e( 'About the user', 'bbpress' ); ?></h2>
     74    <h2 class="entry-title"><?php bbp_is_user_home_edit() ? _e( 'About Yourself', 'bbpress' ) : _e( 'About the user', 'bbpress' ); ?></h2>
    7575
    7676    <fieldset class="bbp-form">
    77         <legend><?php bbp_is_user_home() ? _e( 'About Yourself', 'bbpress' ) : _e( 'About the user', 'bbpress' ); ?></legend>
     77        <legend><?php bbp_is_user_home_edit() ? _e( 'About Yourself', 'bbpress' ) : _e( 'About the user', 'bbpress' ); ?></legend>
    7878
    7979        <?php do_action( 'bbp_user_edit_before_about' ); ?>
     
    137137        </div>
    138138
    139         <?php if ( current_user_can( 'edit_users' ) && ! bbp_is_user_home() ) : ?>
     139        <?php if ( current_user_can( 'edit_users' ) && ! bbp_is_user_home_edit() ) : ?>
    140140
    141141            <div>
     
    172172            <?php bbp_edit_user_form_fields(); ?>
    173173
    174             <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_user_edit_submit" name="bbp_user_edit_submit" class="button submit user-submit"><?php bbp_is_user_home() ? _e( 'Update Profile', 'bbpress' ) : _e( 'Update User', 'bbpress' ); ?></button>
     174            <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_user_edit_submit" name="bbp_user_edit_submit" class="button submit user-submit"><?php bbp_is_user_home_edit() ? _e( 'Update Profile', 'bbpress' ) : _e( 'Update User', 'bbpress' ); ?></button>
    175175        </div>
    176176    </fieldset>
Note: See TracChangeset for help on using the changeset viewer.