Theme My Login - Version 6.1.2

Version Description

  • Replace "self" keyword with "$this" for PHP 4
Download this release

Release Info

Developer jfarthing84
Plugin Icon 128x128 Theme My Login
Version 6.1.2
Comparing to
See all releases

Code changes from version 6.1.1 to 6.1.2

includes/class-theme-my-login.php CHANGED
@@ -213,7 +213,7 @@ class Theme_My_Login {
213
  break;
214
  case 'lostpassword' :
215
  case 'retrievepassword' :
216
- self::check_ssl();
217
 
218
  if ( $http_post ) {
219
  $errors = $this->retrieve_password();
@@ -231,9 +231,9 @@ class Theme_My_Login {
231
  break;
232
  case 'resetpass' :
233
  case 'rp' :
234
- self::check_ssl();
235
 
236
- $user = self::check_password_reset_key( $_REQUEST['key'], $_REQUEST['login'] );
237
 
238
  if ( is_wp_error($user) ) {
239
  wp_redirect( Theme_My_Login::get_current_url( 'action=lostpassword&error=invalidkey' ) );
@@ -245,7 +245,7 @@ class Theme_My_Login {
245
  if ( isset( $_POST['pass1'] ) && $_POST['pass1'] != $_POST['pass2'] ) {
246
  $errors = new WP_Error( 'password_reset_mismatch', __( 'Your passwords do not match.', 'theme-my-login' ) );
247
  } elseif ( isset( $_POST['pass1'] ) && !empty( $_POST['pass1'] ) ) {
248
- self::reset_password( $user, $_POST['pass1'] );
249
 
250
  $redirect_to = Theme_My_Login::get_current_url( 'resetpass=complete' );
251
  if ( isset( $_REQUEST['instance'] ) & !empty( $_REQUEST['instance'] ) )
@@ -274,7 +274,7 @@ class Theme_My_Login {
274
  exit();
275
  }
276
 
277
- self::check_ssl();
278
 
279
  $user_login = '';
280
  $user_email = '';
@@ -330,7 +330,7 @@ class Theme_My_Login {
330
  $secure_cookie = false;
331
 
332
  if ( $http_post ) {
333
- self::check_ssl();
334
 
335
  // Set a cookie now to see if they are supported by the browser.
336
  setcookie( TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN );
213
  break;
214
  case 'lostpassword' :
215
  case 'retrievepassword' :
216
+ $this->check_ssl();
217
 
218
  if ( $http_post ) {
219
  $errors = $this->retrieve_password();
231
  break;
232
  case 'resetpass' :
233
  case 'rp' :
234
+ $this->check_ssl();
235
 
236
+ $user = $this->check_password_reset_key( $_REQUEST['key'], $_REQUEST['login'] );
237
 
238
  if ( is_wp_error($user) ) {
239
  wp_redirect( Theme_My_Login::get_current_url( 'action=lostpassword&error=invalidkey' ) );
245
  if ( isset( $_POST['pass1'] ) && $_POST['pass1'] != $_POST['pass2'] ) {
246
  $errors = new WP_Error( 'password_reset_mismatch', __( 'Your passwords do not match.', 'theme-my-login' ) );
247
  } elseif ( isset( $_POST['pass1'] ) && !empty( $_POST['pass1'] ) ) {
248
+ $this->reset_password( $user, $_POST['pass1'] );
249
 
250
  $redirect_to = Theme_My_Login::get_current_url( 'resetpass=complete' );
251
  if ( isset( $_REQUEST['instance'] ) & !empty( $_REQUEST['instance'] ) )
274
  exit();
275
  }
276
 
277
+ $this->check_ssl();
278
 
279
  $user_login = '';
280
  $user_email = '';
330
  $secure_cookie = false;
331
 
332
  if ( $http_post ) {
333
+ $this->check_ssl();
334
 
335
  // Set a cookie now to see if they are supported by the browser.
336
  setcookie( TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN );
modules/custom-redirection/custom-redirection.php CHANGED
@@ -244,7 +244,7 @@ class Theme_My_Login_Custom_Redirection extends Theme_My_Login_Module {
244
  * @param object $theme_my_login Reference to global $theme_my_login object
245
  */
246
  function activate( &$theme_my_login ) {
247
- $options = self::init_options();
248
  $theme_my_login->options->set_option( 'redirection', $options['redirection'] );
249
  }
250
 
244
  * @param object $theme_my_login Reference to global $theme_my_login object
245
  */
246
  function activate( &$theme_my_login ) {
247
+ $options = $this->init_options();
248
  $theme_my_login->options->set_option( 'redirection', $options['redirection'] );
249
  }
250
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.jfarthing.com/donate
4
  Tags: widget, login, registration, theme, custom, log in, register, sidebar, gravatar, redirection, e-mail
5
  Requires at least: 3.0
6
  Tested up to: 3.1
7
- Stable tag: 6.1.1
8
 
9
  Themes the WordPress login pages according to your theme.
10
 
@@ -40,6 +40,9 @@ Please visit http://www.jfarthing.com/docs/Theme_My_Login first and then visit h
40
 
41
  == Changelog ==
42
 
 
 
 
43
  = 6.1.1 =
44
  * Implement 3.1 password reset routine
45
  * Add 3.1 fields to Themed Profiles
4
  Tags: widget, login, registration, theme, custom, log in, register, sidebar, gravatar, redirection, e-mail
5
  Requires at least: 3.0
6
  Tested up to: 3.1
7
+ Stable tag: 6.1.2
8
 
9
  Themes the WordPress login pages according to your theme.
10
 
40
 
41
  == Changelog ==
42
 
43
+ = 6.1.2 =
44
+ * Replace "self" keyword with "$this" for PHP 4
45
+
46
  = 6.1.1 =
47
  * Implement 3.1 password reset routine
48
  * Add 3.1 fields to Themed Profiles
theme-my-login.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Theme My Login
4
  Plugin URI: http://www.jfarthing.com/wordpress-plugins/theme-my-login/
5
  Description: Themes the WordPress login, registration and forgot password pages according to your theme.
6
- Version: 6.1.1
7
  Author: Jeff Farthing
8
  Author URI: http://www.jfarthing.com
9
  Text Domain: theme-my-login
3
  Plugin Name: Theme My Login
4
  Plugin URI: http://www.jfarthing.com/wordpress-plugins/theme-my-login/
5
  Description: Themes the WordPress login, registration and forgot password pages according to your theme.
6
+ Version: 6.1.2
7
  Author: Jeff Farthing
8
  Author URI: http://www.jfarthing.com
9
  Text Domain: theme-my-login