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

    r8841 r9942  
    321321            'id'     => 'bp-login',
    322322            'title'  => __( 'Log in' ),
    323             'href'   => 'https://buddypress.org/login/'
     323            'href'   => wp_login_url(),
    324324        ) );
    325325    }
     
    374374            'id'     => 'user-info',
    375375            'title'  => $user_info,
    376             'href'   => 'https://buddypress.org/login/',
     376            'href'   => wp_login_url(),
    377377            'meta'   => array(
    378378                'tabindex' => -1,
     
    384384            'id'     => 'register',
    385385            'title'  => __( 'Register' ),
    386             'href'   => 'https://buddypress.org/register/'
    387         ) );
    388         $wp_admin_bar->add_menu( array(
    389             'parent' => 'user-actions',
    390             'id'     => 'lost-pass',
    391             'title'  => __( 'Lost Password' ),
    392             'href'   => 'https://buddypress.org/lost-password/'
     386            'href'   => wp_registration_url(),
    393387        ) );
    394388        $wp_admin_bar->add_menu( array(
     
    396390            'id'     => 'login',
    397391            'title'  => __( 'Log In' ),
    398             'href'   => 'https://buddypress.org/login/'
     392            'href'   => wp_login_url(),
    399393        ) );
    400394    }
     
    421415        'parent'    => 'top-secondary',
    422416        'title'     => $howdy . $avatar,
    423         'href'      => 'https://buddypress.org/login/',
     417        'href'      => wp_login_url(),
    424418        'meta'      => array(
    425419            'class'     => $class,
Note: See TracChangeset for help on using the changeset viewer.