Making WordPress.org


Ignore:
Timestamp:
05/29/2020 03:24:24 AM (5 years ago)
Author:
dd32
Message:

BuddyPress.org & bbPress.org: Use the WordPress wp_login_url() and wp_registration_url() functions rather than hard-coding login/registration links.

See #5239.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/header-subnav.php

    r7305 r9942  
    99        <ul id="nav-user" class="menu">
    1010            <?php if ( ! is_user_logged_in() ) : ?>
    11                 <li><a href="//wordpress.org/support/register.php"><?php esc_html_e( 'Register', 'bborg' ); ?></a></li>
    12                 <li><a href="//wordpress.org/support/bb-login.php"><?php esc_html_e( 'Lost Password', 'bborg' ); ?></a></li>
    13                 <li><a href="<?php echo home_url( 'login' ); ?>"><?php esc_html_e( 'Log In', 'bborg' ); ?></a></li>
     11                <li><a href="<?php echo wp_login_url(); ?>"><?php esc_html_e( 'Log In', 'bborg' ); ?></a></li>
     12                <li><a href="<?php echo wp_registration_url(); ?>"><?php esc_html_e( 'Register', 'bborg' ); ?></a></li>
    1413            <?php elseif ( function_exists( 'bbp_favorites_permalink' ) ) : ?>
    1514                <li><a href="<?php bbp_favorites_permalink( bbp_get_current_user_id() ); ?>"><?php esc_html_e( 'Favorites', 'bborg' ); ?></a></li>
Note: See TracChangeset for help on using the changeset viewer.