Skip to:
Content

Changeset 7485


Ignore:
Timestamp:
10/31/13 18:46:20 (6 months ago)
Author:
r-a-y
Message:

Remove 'testcookie' hidden field in BP's login forms.

Due to a recent change in WordPress (http://core.trac.wordpress.org/changeset/25045)
that checks the 'testcookie' value as well as a real cookie value, this
broke login attempts from BP's login forms.

This commit removes the 'testcookie' hidden field so BuddyPress can bypass
the cookie check and allows login attempts to work as before.

Fixes #5219.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-widgets.php

    r7457 r7485  
    7878            <?php do_action( 'bp_before_login_widget_loggedout' ); ?> 
    7979 
    80             <form name="bp-login-form" id="bp-login-widget-form" class="standard-form" action="<?php echo site_url( 'wp-login.php', 'login_post' ); ?>" method="post"> 
     80            <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"> 
    8181                <label for="bp-login-widget-user-login"><?php _e( 'Username', 'buddypress' ); ?></label> 
    8282                <input type="text" name="log" id="bp-login-widget-user-login" class="input" value="" /> 
     
    9595                <?php endif; ?> 
    9696 
    97                 <input type="hidden" name="testcookie" value="1" /> 
    9897            </form> 
    99  
    10098 
    10199            <?php do_action( 'bp_after_login_widget_loggedout' ); ?> 
  • trunk/bp-themes/bp-default/sidebar.php

    r7267 r7485  
    5454            <?php do_action( 'bp_sidebar_login_form' ); ?> 
    5555 
    56             <input type="hidden" name="testcookie" value="1" /> 
    5756        </form> 
    5857 
Note: See TracChangeset for help on using the changeset viewer.