Theme My Login - Version 6.0.2

Version Description

  • Fix Login page creation during install
  • Fix template tag argument parsing
Download this release

Release Info

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

Code changes from version 6.0.1 to 6.0.2

admin/class-theme-my-login-admin.php CHANGED
@@ -568,8 +568,12 @@ class Theme_My_Login_Admin {
568
  // Get existing page ID
569
  $page_id = $theme_my_login->get_option( 'page_id' );
570
 
 
 
 
 
571
  // Maybe create login page?
572
- if ( ( $page_id && $page = get_page( $page_id ) ) || $page = get_page_by_title( 'Login' ) ) {
573
  $page_id = $page->ID;
574
  // Make sure the page is not in the trash
575
  if ( 'trash' == $page->post_status )
@@ -660,9 +664,12 @@ class Theme_My_Login_Admin {
660
  * @access public
661
  */
662
  function theme_my_login_install() {
663
- $theme_my_login_admin =& $GLOBALS['theme_my_login_admin'];
664
- if ( is_object( $theme_my_login_admin ) )
665
- $theme_my_login_admin->install();
 
 
 
666
  }
667
  register_activation_hook( TML_ABSPATH . '/theme-my-login.php', 'theme_my_login_install' );
668
 
@@ -674,9 +681,12 @@ register_activation_hook( TML_ABSPATH . '/theme-my-login.php', 'theme_my_login_i
674
  * @access public
675
  */
676
  function theme_my_login_uninstall() {
677
- $theme_my_login_admin =& $GLOBALS['theme_my_login_admin'];
678
- if ( is_object( $theme_my_login_admin ) )
679
- $theme_my_login_admin->uninstall();
 
 
 
680
  }
681
  register_uninstall_hook( TML_ABSPATH . '/theme-my-login.php', 'theme_my_login_uninstall' );
682
 
568
  // Get existing page ID
569
  $page_id = $theme_my_login->get_option( 'page_id' );
570
 
571
+ // Check if page exists
572
+ if ( !$page = get_page( $page_id ) )
573
+ $page = get_page_by_title( 'Login' );
574
+
575
  // Maybe create login page?
576
+ if ( $page ) {
577
  $page_id = $page->ID;
578
  // Make sure the page is not in the trash
579
  if ( 'trash' == $page->post_status )
664
  * @access public
665
  */
666
  function theme_my_login_install() {
667
+ global $theme_my_login_admin;
668
+
669
+ if ( !is_object( $theme_my_login_admin ) )
670
+ $theme_my_login_admin =& new Theme_My_Login_Admin();
671
+
672
+ $theme_my_login_admin->install();
673
  }
674
  register_activation_hook( TML_ABSPATH . '/theme-my-login.php', 'theme_my_login_install' );
675
 
681
  * @access public
682
  */
683
  function theme_my_login_uninstall() {
684
+ global $theme_my_login_admin;
685
+
686
+ if ( !is_object( $theme_my_login_admin ) )
687
+ $theme_my_login_admin =& new Theme_My_Login_Admin();
688
+
689
+ $theme_my_login_admin->uninstall();
690
  }
691
  register_uninstall_hook( TML_ABSPATH . '/theme-my-login.php', 'theme_my_login_uninstall' );
692
 
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.1
8
 
9
  Themes the WordPress login pages according to your theme.
10
 
@@ -40,6 +40,10 @@ Please visit http://www.jfarthing.com/support if you have any questions, concern
40
 
41
  == Changelog ==
42
 
 
 
 
 
43
  = 6.0.1 =
44
  * Fix logout link for wp_nav_menu()
45
  * Fix issue admin page not always being tabbed
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.2
8
 
9
  Themes the WordPress login pages according to your theme.
10
 
40
 
41
  == Changelog ==
42
 
43
+ = 6.0.2 =
44
+ * Fix Login page creation during install
45
+ * Fix template tag argument parsing
46
+
47
  = 6.0.1 =
48
  * Fix logout link for wp_nav_menu()
49
  * Fix issue admin page not always being tabbed
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.1
7
  Author: Jeff Farthing
8
  Author URI: http://www.jfarthing.com
9
  Text Domain: theme-my-login
@@ -57,7 +57,7 @@ require_once( TML_ABSPATH . '/includes/class-theme-my-login-widget.php' );
57
  * @global object $theme_my_login_object
58
  * @since 6.0
59
  */
60
- $theme_my_login_object =& new Theme_My_Login();
61
 
62
  /**
63
  * Holds the reference to @see $theme_my_login_object
@@ -65,10 +65,10 @@ $theme_my_login_object =& new Theme_My_Login();
65
  * @global object $theme_my_login
66
  * @since 1.0
67
  */
68
- $theme_my_login =& $theme_my_login_object;
69
 
70
  // Load active modules
71
- foreach ( $theme_my_login->get_active_and_valid_modules() as $module )
72
  include_once( $module );
73
  unset( $module );
74
 
@@ -81,7 +81,7 @@ if ( is_admin() ) {
81
  * @global object $theme_my_login_admin
82
  * @since 6.0
83
  */
84
- $theme_my_login_admin =& new Theme_My_Login_Admin();
85
  }
86
 
87
  if ( defined( 'TML_DEBUG' ) && TML_DEBUG )
@@ -97,7 +97,7 @@ if ( !function_exists( 'theme_my_login' ) ) :
97
  * @param string|array $args Template tag arguments
98
  */
99
  function theme_my_login( $args = '' ) {
100
- echo $GLOBALS['theme_my_login']->shortcode( $args );
101
  }
102
  endif;
103
 
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.2
7
  Author: Jeff Farthing
8
  Author URI: http://www.jfarthing.com
9
  Text Domain: theme-my-login
57
  * @global object $theme_my_login_object
58
  * @since 6.0
59
  */
60
+ $GLOBALS['theme_my_login_object'] =& new Theme_My_Login();
61
 
62
  /**
63
  * Holds the reference to @see $theme_my_login_object
65
  * @global object $theme_my_login
66
  * @since 1.0
67
  */
68
+ $GLOBALS['theme_my_login'] =& $GLOBALS['theme_my_login_object'];
69
 
70
  // Load active modules
71
+ foreach ( $GLOBALS['theme_my_login']->get_active_and_valid_modules() as $module )
72
  include_once( $module );
73
  unset( $module );
74
 
81
  * @global object $theme_my_login_admin
82
  * @since 6.0
83
  */
84
+ $GLOBALS['theme_my_login_admin'] =& new Theme_My_Login_Admin();
85
  }
86
 
87
  if ( defined( 'TML_DEBUG' ) && TML_DEBUG )
97
  * @param string|array $args Template tag arguments
98
  */
99
  function theme_my_login( $args = '' ) {
100
+ echo $GLOBALS['theme_my_login']->shortcode( wp_parse_args( $args ) );
101
  }
102
  endif;
103