Theme My Login - Version 6.0.4

Version Description

  • Fix admin e-mail notification disabling
  • Fix labels for login form fields
  • Fix wp-login.php form action URL
Download this release

Release Info

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

Code changes from version 6.0.3 to 6.0.4

includes/class-theme-my-login.php CHANGED
@@ -572,7 +572,8 @@ class Theme_My_Login {
572
  * @return string The modified URL
573
  */
574
  function site_url( $url, $path, $orig_scheme ) {
575
- if ( strpos( $url, 'wp-login.php' ) !== false && !isset( $_REQUEST['interim-login'] ) ) {
 
576
  $parsed_url = parse_url( $url );
577
  $url = $this->get_login_page_link();
578
  if ( 'https' == strtolower( $orig_scheme ) )
572
  * @return string The modified URL
573
  */
574
  function site_url( $url, $path, $orig_scheme ) {
575
+ global $pagenow;
576
+ if ( 'wp-login.php' != $pagenow && strpos( $url, 'wp-login.php' ) !== false && !isset( $_REQUEST['interim-login'] ) ) {
577
  $parsed_url = parse_url( $url );
578
  $url = $this->get_login_page_link();
579
  if ( 'https' == strtolower( $orig_scheme ) )
modules/custom-email/admin/custom-email-admin.php CHANGED
@@ -21,8 +21,8 @@ class Theme_My_Login_Custom_Email_Admin extends Theme_My_Login_Module {
21
  */
22
  function save_settings( $settings ) {
23
  // Checkboxes
24
- $settings['email']['new_user']['admin_disable'] = empty( $settings['email']['new_user']['admin_disable'] ) ? 0 : 1;
25
- $settings['email']['reset_pass']['admin_disable'] = empty( $settings['email']['reset_pass']['admin_disable'] ) ? 0 : 1;
26
  return $settings;
27
  }
28
 
21
  */
22
  function save_settings( $settings ) {
23
  // Checkboxes
24
+ $settings['email']['new_user']['admin_disable'] = isset( $_POST['theme_my_login']['email']['new_user']['admin_disable'] );
25
+ $settings['email']['reset_pass']['admin_disable'] = isset( $_POST['theme_my_login']['email']['reset_pass']['admin_disable'] );
26
  return $settings;
27
  }
28
 
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: 2.8
6
  Tested up to: 3.0.1
7
- Stable tag: 6.0.3
8
 
9
  Themes the WordPress login pages according to your theme.
10
 
@@ -40,6 +40,11 @@ Please visit http://www.jfarthing.com/support if you have any questions, concern
40
 
41
  == Changelog ==
42
 
 
 
 
 
 
43
  = 6.0.3 =
44
  * Fix login reauth bug in redirection module
45
 
4
  Tags: widget, login, registration, theme, custom, log in, register, sidebar, gravatar, redirection, e-mail
5
  Requires at least: 2.8
6
  Tested up to: 3.0.1
7
+ Stable tag: 6.0.4
8
 
9
  Themes the WordPress login pages according to your theme.
10
 
40
 
41
  == Changelog ==
42
 
43
+ = 6.0.4 =
44
+ * Fix admin e-mail notification disabling
45
+ * Fix labels for login form fields
46
+ * Fix wp-login.php form action URL
47
+
48
  = 6.0.3 =
49
  * Fix login reauth bug in redirection module
50
 
templates/login-form.php CHANGED
@@ -9,11 +9,11 @@ Theme My Login will always look in your theme's directory first, before using th
9
  <?php $template->the_errors(); ?>
10
  <form name="loginform" id="loginform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url( 'login' ); ?>" method="post">
11
  <p>
12
- <label for="log<?php $template->the_instance(); ?>"><?php _e( 'Username', 'theme-my-login' ) ?></label>
13
  <input type="text" name="log" id="user_login<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'log' ); ?>" size="20" />
14
  </p>
15
  <p>
16
- <label for="pwd<?php $template->the_instance(); ?>"><?php _e( 'Password', 'theme-my-login' ) ?></label>
17
  <input type="password" name="pwd" id="user_pass<?php $template->the_instance(); ?>" class="input" value="" size="20" />
18
  </p>
19
  <?php
9
  <?php $template->the_errors(); ?>
10
  <form name="loginform" id="loginform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url( 'login' ); ?>" method="post">
11
  <p>
12
+ <label for="user_login<?php $template->the_instance(); ?>"><?php _e( 'Username', 'theme-my-login' ) ?></label>
13
  <input type="text" name="log" id="user_login<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'log' ); ?>" size="20" />
14
  </p>
15
  <p>
16
+ <label for="user_pass<?php $template->the_instance(); ?>"><?php _e( 'Password', 'theme-my-login' ) ?></label>
17
  <input type="password" name="pwd" id="user_pass<?php $template->the_instance(); ?>" class="input" value="" size="20" />
18
  </p>
19
  <?php
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.0.3
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.0.4
7
  Author: Jeff Farthing
8
  Author URI: http://www.jfarthing.com
9
  Text Domain: theme-my-login