Making WordPress.org


Ignore:
Timestamp:
01/31/2023 11:28:18 PM (3 years ago)
Author:
iandunn
Message:

Support: Add conditional link to Edit Account screen.

See r12321
See https://github.com/WordPress/wporg-two-factor/issues/26

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/user-details.php

    r8265 r12377  
    105105                <?php endif; ?>
    106106
     107                <?php // todo remove the condition when launch for all users ?>
     108                <?php if ( \WordPressdotorg\Two_Factor\is_2fa_beta_tester() ) : ?>
     109                <li class="<?php if ( wporg_bbp_is_single_user_edit_account() ) : ?>current<?php endif; ?>">
     110                    <span class="bbp-user-edit-account-link">
     111                        <a href="<?php bbp_user_profile_edit_url(); ?>account/">
     112                            <?php esc_html_e( 'Edit Account', 'wporg-forums' ); ?>
     113                        </a>
     114                    </span>
     115                </li>
     116                <?php endif; ?>
     117
    107118                <li class="<?php if ( bbp_is_single_user_edit() ) :?>current<?php endif; ?>">
    108119                    <span class="bbp-user-edit-link">
Note: See TracChangeset for help on using the changeset viewer.