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/plugins/bbpress-org/toolbar.php

    r8841 r9942  
    452452            'id'     => 'user-info',
    453453            'title'  => $user_info,
    454             'href'   => 'https://bbpress.org/login/',
     454            'href'   => wp_login_url(),
    455455            'meta'   => array(
    456456                'tabindex' => -1,
     
    462462            'id'     => 'register',
    463463            'title'  => __( 'Register' ),
    464             'href'   => 'https://bbpress.org/register/'
    465         ) );
    466         $wp_admin_bar->add_menu( array(
    467             'parent' => 'user-actions',
    468             'id'     => 'lost-pass',
    469             'title'  => __( 'Lost Password' ),
    470             'href'   => 'https://bbpress.org/lost-password/'
     464            'href'   => wp_registration_url(),
    471465        ) );
    472466        $wp_admin_bar->add_menu( array(
     
    474468            'id'     => 'login',
    475469            'title'  => __( 'Log In' ),
    476             'href'   => 'https://bbpress.org/login/'
     470            'href'   => wp_login_url(),
    477471        ) );
    478472    }
Note: See TracChangeset for help on using the changeset viewer.