Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/24/2018 08:42:55 PM (7 years ago)
Author:
r-a-y
Message:

Widgets: Revert wp_login_url() change for the Login Widget.

In #7522, we switched from using site_url( 'wp-login.php' ) to
wp_login_url() for the form action. But, wp_login_url() doesn't take
into account HTTPS post submissions. So this commit reverts this change.

Props eric01.

Fixes #7860 (trunk).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-core-login-widget.php

    r11698 r12118  
    105105            do_action( 'bp_before_login_widget_loggedout' ); ?>
    106106
    107             <form name="bp-login-form" id="bp-login-widget-form" class="standard-form" action="<?php echo esc_url( wp_login_url() ); ?>" method="post">
     107            <form name="bp-login-form" id="bp-login-widget-form" class="standard-form" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
    108108                <label for="bp-login-widget-user-login"><?php _e( 'Username', 'buddypress' ); ?></label>
    109109                <input type="text" name="log" id="bp-login-widget-user-login" class="input" value="" />
Note: See TracChangeset for help on using the changeset viewer.