Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/17/2017 07:18:10 PM (9 years ago)
Author:
djpaul
Message:

Core: use wp_login_url() instead of site_url().

Props slaFFik

Fixes #7522

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r11664 r11698  
    36793679    // Check required values.
    36803680    if ( ! $raw_user_id || ! $raw_email_type || ! $raw_hash || ! array_key_exists( $raw_email_type, $emails ) ) {
    3681         $redirect_to = site_url( 'wp-login.php' );
     3681        $redirect_to = wp_login_url();
    36823682        $result_msg  = __( 'Something has gone wrong.', 'buddypress' );
    36833683        $unsub_msg   = __( 'Please log in and go to your settings to unsubscribe from notification emails.', 'buddypress' );
     
    36853685    // Check valid hash.
    36863686    } elseif ( ! hash_equals( $new_hash, $raw_hash ) ) {
    3687         $redirect_to = site_url( 'wp-login.php' );
     3687        $redirect_to = wp_login_url();
    36883688        $result_msg  = __( 'Something has gone wrong.', 'buddypress' );
    36893689        $unsub_msg   = __( 'Please log in and go to your settings to unsubscribe from notification emails.', 'buddypress' );
     
    37553755
    37563756    if ( empty( $args['notification_type'] ) || ! array_key_exists( $args['notification_type'], $emails ) ) {
    3757         return site_url( 'wp-login.php' );
     3757        return wp_login_url();
    37583758    }
    37593759
Note: See TracChangeset for help on using the changeset viewer.