Changeset 742295
- Timestamp:
- 07/17/2013 02:09:44 PM (13 years ago)
- Location:
- s8-custom-login-and-registration
- Files:
-
- 1 added
- 2 deleted
- 2 edited
- 16 copied
-
tags/0.8.7 (added)
-
tags/0.8.7/admin (copied) (copied from s8-custom-login-and-registration/trunk/admin)
-
tags/0.8.7/admin/settings.php (copied) (copied from s8-custom-login-and-registration/trunk/admin/settings.php)
-
tags/0.8.7/css (copied) (copied from s8-custom-login-and-registration/trunk/css)
-
tags/0.8.7/css/jquery-ui-1.9.0.custom.min.css (copied) (copied from s8-custom-login-and-registration/trunk/css/jquery-ui-1.9.0.custom.min.css)
-
tags/0.8.7/css/s8-login-admin.css (copied) (copied from s8-custom-login-and-registration/trunk/css/s8-login-admin.css)
-
tags/0.8.7/css/s8-login-basic-styles.css (copied) (copied from s8-custom-login-and-registration/trunk/css/s8-login-basic-styles.css)
-
tags/0.8.7/images (copied) (copied from s8-custom-login-and-registration/trunk/images)
-
tags/0.8.7/inc (copied) (copied from s8-custom-login-and-registration/trunk/inc)
-
tags/0.8.7/inc/forms.php (copied) (copied from s8-custom-login-and-registration/trunk/inc/forms.php)
-
tags/0.8.7/inc/functions.php (copied) (copied from s8-custom-login-and-registration/trunk/inc/functions.php)
-
tags/0.8.7/inc/login.php (deleted)
-
tags/0.8.7/inc/register.php (deleted)
-
tags/0.8.7/inc/s8-login-widget.php (copied) (copied from s8-custom-login-and-registration/trunk/inc/s8-login-widget.php)
-
tags/0.8.7/js (copied) (copied from s8-custom-login-and-registration/trunk/js)
-
tags/0.8.7/js/s8-login-admin.js (copied) (copied from s8-custom-login-and-registration/trunk/js/s8-login-admin.js)
-
tags/0.8.7/js/s8-login-failsafe.js (copied) (copied from s8-custom-login-and-registration/trunk/js/s8-login-failsafe.js)
-
tags/0.8.7/readme.txt (copied) (copied from s8-custom-login-and-registration/trunk/readme.txt) (3 diffs)
-
tags/0.8.7/s8-login-registration.php (copied) (copied from s8-custom-login-and-registration/trunk/s8-login-registration.php) (6 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/s8-login-registration.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
s8-custom-login-and-registration/tags/0.8.7/readme.txt
r721340 r742295 3 3 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 4 4 Requires at least: 3.3 5 Tested up to: 3.5. 16 Stable tag: 0.8. 65 Tested up to: 3.5.2 6 Stable tag: 0.8.7 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 56 56 57 57 == Upgrade Notice == 58 = 0.8.7 = 59 Fixed a login related bug that could prevent a previously logged in user from logging in 58 60 = 0.8.6 = 59 61 Minor bug fix related to the number 1 appearing on some forms … … 72 74 73 75 == Changelog == 76 = 0.8.7 = 77 * Fixed a login related bug that could prevent a previously logged in user from logging in 74 78 = 0.8.6 = 75 79 * 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 5 5 * 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. 6 6 * 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. 68 * Author: Sideways8 Interactive 7 * Version: 0.8.7 8 * Author: Sideways8 Interactive, LLC 9 9 * Author URI: http://sideways8.com/ 10 10 * License: GPLv3 … … 26 26 class s8_login_registration { 27 27 const ep_login = 'login'; 28 private $version = '0.8. 6',28 private $version = '0.8.7', 29 29 $title = '404 Not Found', 30 30 $content = 'Sorry, what you are looking for could not be found!'; … … 45 45 add_action( 'the_posts', array( $this, 'the_posts' ) ); 46 46 add_action( 'template_include', array( $this, 'template_include' ) ); 47 add_action( 'template_redirect', array( $this, 'header_output' ) ); 47 48 // Filter out the wrong urls in the reset password emails 48 49 add_filter( 'retrieve_password_message', array( $this, 'filter_email_urls' ), 10, 2 ); … … 78 79 if(is_user_logged_in()) 79 80 wp_logout(); 80 wp_redirect( $url, 302);81 wp_redirect( $url, 302 ); 81 82 exit; 82 83 } … … 85 86 $wp_query->is_home = false; 86 87 // 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; } 88 89 // Include our CSS 89 90 wp_enqueue_style('s8-login-registration', s8_get_login_registration_page_css()); … … 168 169 } 169 170 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 170 181 /** 171 182 * Registers a user after validating all input. Notifies them by email with their password. -
s8-custom-login-and-registration/trunk/readme.txt
r721340 r742295 3 3 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 4 4 Requires at least: 3.3 5 Tested up to: 3.5. 16 Stable tag: 0.8. 65 Tested up to: 3.5.2 6 Stable tag: 0.8.7 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 56 56 57 57 == Upgrade Notice == 58 = 0.8.7 = 59 Fixed a login related bug that could prevent a previously logged in user from logging in 58 60 = 0.8.6 = 59 61 Minor bug fix related to the number 1 appearing on some forms … … 72 74 73 75 == Changelog == 76 = 0.8.7 = 77 * Fixed a login related bug that could prevent a previously logged in user from logging in 74 78 = 0.8.6 = 75 79 * 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 5 5 * 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. 6 6 * 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. 68 * Author: Sideways8 Interactive 7 * Version: 0.8.7 8 * Author: Sideways8 Interactive, LLC 9 9 * Author URI: http://sideways8.com/ 10 10 * License: GPLv3 … … 26 26 class s8_login_registration { 27 27 const ep_login = 'login'; 28 private $version = '0.8. 6',28 private $version = '0.8.7', 29 29 $title = '404 Not Found', 30 30 $content = 'Sorry, what you are looking for could not be found!'; … … 45 45 add_action( 'the_posts', array( $this, 'the_posts' ) ); 46 46 add_action( 'template_include', array( $this, 'template_include' ) ); 47 add_action( 'template_redirect', array( $this, 'header_output' ) ); 47 48 // Filter out the wrong urls in the reset password emails 48 49 add_filter( 'retrieve_password_message', array( $this, 'filter_email_urls' ), 10, 2 ); … … 78 79 if(is_user_logged_in()) 79 80 wp_logout(); 80 wp_redirect( $url, 302);81 wp_redirect( $url, 302 ); 81 82 exit; 82 83 } … … 85 86 $wp_query->is_home = false; 86 87 // 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; } 88 89 // Include our CSS 89 90 wp_enqueue_style('s8-login-registration', s8_get_login_registration_page_css()); … … 168 169 } 169 170 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 170 181 /** 171 182 * Registers a user after validating all input. Notifies them by email with their password.
Note: See TracChangeset
for help on using the changeset viewer.