Theme My Login - Version 3.1.1

Version Description

  • Fixed a bug that incorrectly determined current user role
Download this release

Release Info

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

Code changes from version 3.1 to 3.1.1

includes/widget-new.php CHANGED
@@ -16,7 +16,7 @@ class ThemeMyLoginWidget extends WP_Widget {
16
 
17
  if (!is_page($ThemeMyLogin->GetOption('page_id'))) {
18
  if ($user_ID != '' && $instance['show_logged_in']) {
19
- $user_role = $current_user->roles[0];
20
  $dashboard_url = $ThemeMyLogin->GetOption('widget_dashboard_url');
21
  $profile_url = $ThemeMyLogin->GetOption('widget_profile_url');
22
  echo $before_widget . $before_title . __('Welcome', 'theme-my-login') . ', ' . $current_user->display_name . $after_title . "\n";
16
 
17
  if (!is_page($ThemeMyLogin->GetOption('page_id'))) {
18
  if ($user_ID != '' && $instance['show_logged_in']) {
19
+ $user_role = reset($current_user->roles);
20
  $dashboard_url = $ThemeMyLogin->GetOption('widget_dashboard_url');
21
  $profile_url = $ThemeMyLogin->GetOption('widget_profile_url');
22
  echo $before_widget . $before_title . __('Welcome', 'theme-my-login') . ', ' . $current_user->display_name . $after_title . "\n";
includes/widget-old.php CHANGED
@@ -20,7 +20,7 @@ class ThemeMyLoginWidget {
20
 
21
  if (!is_page($ThemeMyLogin->GetOption('page_id'))) {
22
  if ($user_ID != '' && $ThemeMyLogin->GetOption('widget_show_logged_in')) {
23
- $user_role = $current_user->roles[0];
24
  $dashboard_link = $ThemeMyLogin->GetOption('widget_dashboard_link');
25
  $dashboard_url = $ThemeMyLogin->GetOption('widget_dashboard_url');
26
  $profile_link = $ThemeMyLogin->GetOption('widget_profile_link');
20
 
21
  if (!is_page($ThemeMyLogin->GetOption('page_id'))) {
22
  if ($user_ID != '' && $ThemeMyLogin->GetOption('widget_show_logged_in')) {
23
+ $user_role = reset($current_user->roles);
24
  $dashboard_link = $ThemeMyLogin->GetOption('widget_dashboard_link');
25
  $dashboard_url = $ThemeMyLogin->GetOption('widget_dashboard_url');
26
  $profile_link = $ThemeMyLogin->GetOption('widget_profile_link');
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: jfarthing84
3
  Donate link: http://www.jfarthing.com/donate
4
  Tags: widget, login, registration, theme, custom, log in, register, sidebar, gravatar
5
  Requires at least: 2.5
6
- Tested up to: 2.8.1
7
  Stable tag: trunk
8
 
9
  Themes the WordPress login pages according to your theme.
@@ -27,6 +27,9 @@ None yet. Please visit http://www.jfarthing.com/forum for any support!
27
 
28
  == Changelog ==
29
 
 
 
 
30
  = 3.1 =
31
  * Added the ability to specify URL's for widget 'Dashboard' and 'Profile' links per user role
32
  * Implemented WordPress 2.8 widget control for multiple widget instances
3
  Donate link: http://www.jfarthing.com/donate
4
  Tags: widget, login, registration, theme, custom, log in, register, sidebar, gravatar
5
  Requires at least: 2.5
6
+ Tested up to: 2.8.2
7
  Stable tag: trunk
8
 
9
  Themes the WordPress login pages according to your theme.
27
 
28
  == Changelog ==
29
 
30
+ = 3.1.1 =
31
+ * Fixed a bug that incorrectly determined current user role
32
+
33
  = 3.1 =
34
  * Added the ability to specify URL's for widget 'Dashboard' and 'Profile' links per user role
35
  * Implemented WordPress 2.8 widget control for multiple widget instances
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: 3.1
7
  Author: Jeff Farthing
8
  Author URI: http://www.jfarthing.com
9
  */
@@ -26,7 +26,7 @@ if ($wp_version < '2.7') {
26
  if (!class_exists('ThemeMyLogin')) {
27
  class ThemeMyLogin {
28
 
29
- var $version = '3.1';
30
  var $options = array();
31
  var $permalink = '';
32
 
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: 3.1.1
7
  Author: Jeff Farthing
8
  Author URI: http://www.jfarthing.com
9
  */
26
  if (!class_exists('ThemeMyLogin')) {
27
  class ThemeMyLogin {
28
 
29
+ var $version = '3.1.1';
30
  var $options = array();
31
  var $permalink = '';
32