Changeset 4467
- Timestamp:
- 06/06/2011 09:01:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/functions.php
r4465 r4467 661 661 /** 662 662 * Adds a hidden "redirect_to" input field to the sidebar login form. 663 * Put here temporarily for proof-of-concept.664 663 * 665 664 * @since 1.3 666 665 */ 667 666 function bp_dtheme_sidebar_login_redirect_to() { 668 $redirect_to = apply_filters( 'bp_no_access_redirect', isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '' );667 $redirect_to = apply_filters( 'bp_no_access_redirect', !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '' ); 669 668 ?> 670 669 <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
Note: See TracChangeset
for help on using the changeset viewer.