Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/22/2012 09:52:50 AM (12 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-includes/bbp-user-template.php

    r3911 r3918  
    864864 * @uses is_super_admin() To check if the user is super admin
    865865 * @uses bbp_is_user_home() To check if it's the user home
     866 * @uses bbp_is_user_home_edit() To check if it's the user home edit
    866867 */
    867868function bbp_notice_edit_user_is_super_admin() {
     
    869870
    870871    <div class="bbp-template-notice important">
    871         <p><?php bbp_is_user_home() ? _e( 'You have super admin privileges.', 'bbpress' ) : _e( 'This user has super admin privileges.', 'bbpress' ); ?></p>
     872        <p><?php bbp_is_user_home() || bbp_is_user_home_edit() ? _e( 'You have super admin privileges.', 'bbpress' ) : _e( 'This user has super admin privileges.', 'bbpress' ); ?></p>
    872873    </div>
    873874
Note: See TracChangeset for help on using the changeset viewer.