Theme My Login - Version 5.0.3

Version Description

- * Fix an improper fix for PHP4 style consturctor in class * Only display function override notices on TML settings page properly

Download this release

Release Info

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

Code changes from version 5.0.2 to 5.0.3

admin/includes/admin.php CHANGED
@@ -1,5 +1,13 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
3
  function wdbj_tml_new_user_notification_override_notice() {
4
  $message = __('<strong>WARNING</strong>: The function <em>wp_new_user_notification</em> has already been overridden by another plugin. ', 'theme-my-login');
5
  $message .= __('Some features of <em>Theme My Login</em> may not function properly.', 'theme-my-login');
@@ -33,12 +41,6 @@ function wdbj_tml_load_settings_page() {
33
 
34
  do_action('tml_settings_page');
35
 
36
- // Display warning notices for function overrides
37
- if ( function_exists('wp_new_user_notification') )
38
- add_action('admin_notices', 'wdbj_tml_new_user_notification_override_notice');
39
- if ( function_exists('wp_password_change_notification') )
40
- add_action('admin_notices', 'wdbj_tml_password_change_notification_override_notice');
41
-
42
  // Enqueue neccessary scripts and styles
43
  wp_enqueue_script('theme-my-login-admin', plugins_url('/theme-my-login/admin/js/theme-my-login-admin.js'));
44
  wp_enqueue_script('jquery-ui-tabs');
1
  <?php
2
 
3
+ function wdbj_tml_add_new_user_notificaiton_override_notice() {\
4
+ add_action('admin_notices', 'wdbj_tml_new_user_notification_override_notice');
5
+ }
6
+
7
+ function wdbj_tml_add_password_change_notificaiton_override_notice() {\
8
+ add_action('admin_notices', 'wdbj_tml_password_change_notification_override_notice');
9
+ }
10
+
11
  function wdbj_tml_new_user_notification_override_notice() {
12
  $message = __('<strong>WARNING</strong>: The function <em>wp_new_user_notification</em> has already been overridden by another plugin. ', 'theme-my-login');
13
  $message .= __('Some features of <em>Theme My Login</em> may not function properly.', 'theme-my-login');
41
 
42
  do_action('tml_settings_page');
43
 
 
 
 
 
 
 
44
  // Enqueue neccessary scripts and styles
45
  wp_enqueue_script('theme-my-login-admin', plugins_url('/theme-my-login/admin/js/theme-my-login-admin.js'));
46
  wp_enqueue_script('jquery-ui-tabs');
includes/class.php CHANGED
@@ -132,7 +132,7 @@ class Theme_My_Login {
132
  }
133
 
134
  function Theme_My_Login() {
135
- self::__construct();
136
  }
137
  }
138
  endif;
132
  }
133
 
134
  function Theme_My_Login() {
135
+ $this->__construct();
136
  }
137
  }
138
  endif;
readme.txt CHANGED
@@ -43,6 +43,10 @@ None yet. Please visit http://www.jfarthing.com/forum for any support!
43
 
44
  == Changelog ==
45
 
 
 
 
 
46
  = 5.0.2 =
47
  * Fix improper function call for PHP4 style constructor in class
48
 
43
 
44
  == Changelog ==
45
 
46
+ = 5.0.3 -
47
+ * Fix an improper fix for PHP4 style consturctor in class
48
+ * Only display function override notices on TML settings page properly
49
+
50
  = 5.0.2 =
51
  * Fix improper function call for PHP4 style constructor in class
52
 
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-plugin
5
  Description: Themes the WordPress login, registration and forgot password pages according to your theme.
6
- Version: 5.0.2
7
  Author: Jeff Farthing
8
  Author URI: http://www.jfarthing.com
9
  Text Domain: theme-my-login
@@ -45,6 +45,12 @@ if ( is_admin() ) {
45
 
46
  add_action('admin_init', 'wdbj_tml_admin_init');
47
  add_action('admin_menu', 'wdbj_tml_admin_menu');
 
 
 
 
 
 
48
  }
49
 
50
  // Load pluggable functions after modules (in case a module needs to override a function)
3
  Plugin Name: Theme My Login
4
  Plugin URI: http://www.jfarthing.com/wordpress-plugins/theme-my-login-plugin
5
  Description: Themes the WordPress login, registration and forgot password pages according to your theme.
6
+ Version: 5.0.3
7
  Author: Jeff Farthing
8
  Author URI: http://www.jfarthing.com
9
  Text Domain: theme-my-login
45
 
46
  add_action('admin_init', 'wdbj_tml_admin_init');
47
  add_action('admin_menu', 'wdbj_tml_admin_menu');
48
+
49
+ // Display warning notices for function overrides
50
+ if ( function_exists('wp_new_user_notification') )
51
+ add_action('tml_settings_page', 'wdbj_tml_add_new_user_notification_override_notice');
52
+ if ( function_exists('wp_password_change_notification') )
53
+ add_action('tml_settings_page', 'wdbj_tml_add_password_change_notification_override_notice');
54
  }
55
 
56
  // Load pluggable functions after modules (in case a module needs to override a function)