WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Members] Problem in form redirect_to variable (1 post)

  1. Damian
    Member
    Posted 2 years ago #

    Hi guys you got a problem in the last version of the plugin.

    I got my wordpress installation under 2 directories. mydomain.com/sub1/wordpress/

    In the forms to login the redirect always goes to mydomain.com/sub1/wordpress/sub1/wordpress/page-name instead of sub1/wordpress/page-name

    its happening on the forms in sidebar and in pages.

    To fix it i changed in widget-login-form-php line 67:
    From
    ` if ( !empty( $instance['redirect'] ) )
    $args['redirect'] = esc_url( $instance['redirect'] );`
    To:
    `if ( !empty( $instance['redirect'] ) ) :
    $args['redirect'] = esc_url( $instance['redirect'] );
    else :
    $args['redirect'] = get_permalink( );
    endif;`

    Keep the great work!!

Topic Closed

This topic has been closed to new replies.

About this Topic