Plugin Directory

Changeset 742295


Ignore:
Timestamp:
07/17/2013 02:09:44 PM (13 years ago)
Author:
sideways8
Message:

Bug fix release 0.8.7

Location:
s8-custom-login-and-registration
Files:
1 added
2 deleted
2 edited
16 copied

Legend:

Unmodified
Added
Removed
  • s8-custom-login-and-registration/tags/0.8.7/readme.txt

    r721340 r742295  
    33Tags: s8, sideways8, sideways 8, custom login, login, registration, form, login widget, widget, theme login, style login, theme, style log in, theme log in, log in, custom log in, brand, brand login, brand log in
    44Requires at least: 3.3
    5 Tested up to: 3.5.1
    6 Stable tag: 0.8.6
     5Tested up to: 3.5.2
     6Stable tag: 0.8.7
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5656
    5757== Upgrade Notice ==
     58= 0.8.7 =
     59Fixed a login related bug that could prevent a previously logged in user from logging in
    5860= 0.8.6 =
    5961Minor bug fix related to the number 1 appearing on some forms
     
    7274
    7375== Changelog ==
     76= 0.8.7 =
     77* Fixed a login related bug that could prevent a previously logged in user from logging in
    7478= 0.8.6 =
    7579* Fixed a bug where the number "1" could appear at the bottom of some forms.
  • s8-custom-login-and-registration/tags/0.8.7/s8-login-registration.php

    r721340 r742295  
    55 * Description: The way your site is presented to your users is important. That is why we made the "Custom Login and Registration" plugin. It is designed so that both you and your users never see the built-in WP login, registration, and password reset forms. It is still compatible with all of WordPress' built-in functionality and logout links will still function as they should. It also comes with a login form widget to make it easy for your non-logged in visitors to find the login form.
    66 * Tags: s8, sideways8, sideways 8, custom login, login, registration, form, login widget, widget, theme login, style login, theme, style log in, theme log in, log in, custom log in, brand, brand login, brand log in
    7  * Version: 0.8.6
    8  * Author: Sideways8 Interactive
     7 * Version: 0.8.7
     8 * Author: Sideways8 Interactive, LLC
    99 * Author URI: http://sideways8.com/
    1010 * License: GPLv3
     
    2626class s8_login_registration {
    2727    const ep_login = 'login';
    28     private $version = '0.8.6',
     28    private $version = '0.8.7',
    2929            $title = '404 Not Found',
    3030            $content = 'Sorry, what you are looking for could not be found!';
     
    4545        add_action( 'the_posts', array( $this, 'the_posts' ) );
    4646        add_action( 'template_include', array( $this, 'template_include' ) );
     47        add_action( 'template_redirect', array( $this, 'header_output' ) );
    4748        // Filter out the wrong urls in the reset password emails
    4849        add_filter( 'retrieve_password_message', array( $this, 'filter_email_urls' ), 10, 2 );
     
    7879            if(is_user_logged_in())
    7980                wp_logout();
    80             wp_redirect($url, 302);
     81            wp_redirect( $url, 302 );
    8182            exit;
    8283        }
     
    8586            $wp_query->is_home = false;
    8687            // Redirect logged in users! They shouldn't be here.
    87             if(is_user_logged_in()) { wp_redirect(home_url('/')); exit; }
     88            if ( is_user_logged_in() ) { wp_redirect( home_url('/'), 302  ); exit; }
    8889            // Include our CSS
    8990            wp_enqueue_style('s8-login-registration', s8_get_login_registration_page_css());
     
    168169    }
    169170
     171    function header_output() {
     172        global $wp_query;
     173        if ( isset( $wp_query->query_vars[self::ep_login] ) ) {
     174            wp_clear_auth_cookie();
     175            header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
     176            header("Cache-Control: post-check=0, pre-check=0", false);
     177            header("Pragma: no-cache");
     178        }
     179    }
     180
    170181    /**
    171182     * Registers a user after validating all input. Notifies them by email with their password.
  • s8-custom-login-and-registration/trunk/readme.txt

    r721340 r742295  
    33Tags: s8, sideways8, sideways 8, custom login, login, registration, form, login widget, widget, theme login, style login, theme, style log in, theme log in, log in, custom log in, brand, brand login, brand log in
    44Requires at least: 3.3
    5 Tested up to: 3.5.1
    6 Stable tag: 0.8.6
     5Tested up to: 3.5.2
     6Stable tag: 0.8.7
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5656
    5757== Upgrade Notice ==
     58= 0.8.7 =
     59Fixed a login related bug that could prevent a previously logged in user from logging in
    5860= 0.8.6 =
    5961Minor bug fix related to the number 1 appearing on some forms
     
    7274
    7375== Changelog ==
     76= 0.8.7 =
     77* Fixed a login related bug that could prevent a previously logged in user from logging in
    7478= 0.8.6 =
    7579* Fixed a bug where the number "1" could appear at the bottom of some forms.
  • s8-custom-login-and-registration/trunk/s8-login-registration.php

    r721340 r742295  
    55 * Description: The way your site is presented to your users is important. That is why we made the "Custom Login and Registration" plugin. It is designed so that both you and your users never see the built-in WP login, registration, and password reset forms. It is still compatible with all of WordPress' built-in functionality and logout links will still function as they should. It also comes with a login form widget to make it easy for your non-logged in visitors to find the login form.
    66 * Tags: s8, sideways8, sideways 8, custom login, login, registration, form, login widget, widget, theme login, style login, theme, style log in, theme log in, log in, custom log in, brand, brand login, brand log in
    7  * Version: 0.8.6
    8  * Author: Sideways8 Interactive
     7 * Version: 0.8.7
     8 * Author: Sideways8 Interactive, LLC
    99 * Author URI: http://sideways8.com/
    1010 * License: GPLv3
     
    2626class s8_login_registration {
    2727    const ep_login = 'login';
    28     private $version = '0.8.6',
     28    private $version = '0.8.7',
    2929            $title = '404 Not Found',
    3030            $content = 'Sorry, what you are looking for could not be found!';
     
    4545        add_action( 'the_posts', array( $this, 'the_posts' ) );
    4646        add_action( 'template_include', array( $this, 'template_include' ) );
     47        add_action( 'template_redirect', array( $this, 'header_output' ) );
    4748        // Filter out the wrong urls in the reset password emails
    4849        add_filter( 'retrieve_password_message', array( $this, 'filter_email_urls' ), 10, 2 );
     
    7879            if(is_user_logged_in())
    7980                wp_logout();
    80             wp_redirect($url, 302);
     81            wp_redirect( $url, 302 );
    8182            exit;
    8283        }
     
    8586            $wp_query->is_home = false;
    8687            // Redirect logged in users! They shouldn't be here.
    87             if(is_user_logged_in()) { wp_redirect(home_url('/')); exit; }
     88            if ( is_user_logged_in() ) { wp_redirect( home_url('/'), 302  ); exit; }
    8889            // Include our CSS
    8990            wp_enqueue_style('s8-login-registration', s8_get_login_registration_page_css());
     
    168169    }
    169170
     171    function header_output() {
     172        global $wp_query;
     173        if ( isset( $wp_query->query_vars[self::ep_login] ) ) {
     174            wp_clear_auth_cookie();
     175            header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
     176            header("Cache-Control: post-check=0, pre-check=0", false);
     177            header("Pragma: no-cache");
     178        }
     179    }
     180
    170181    /**
    171182     * Registers a user after validating all input. Notifies them by email with their password.
Note: See TracChangeset for help on using the changeset viewer.