Theme My Login - Version 2.0

Version Description

Download this release

Release Info

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

Code changes from version 2.0.1 to 2.0

Files changed (2) hide show
  1. readme.txt +2 -3
  2. theme-my-login.php +6 -6
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://webdesign.jaedub.com
4
  Tags: wordpress, login, register, theme, form, james kelly
5
  Requires at least: 2.5
6
  Tested up to: 2.7.1
7
- Stable tag: 2.0.1
8
 
9
  This plugin themes the WordPress login, register, forgot password and profile pages to look like the rest of your website.
10
 
@@ -51,5 +51,4 @@ Now you can save your changes and go test out your new themed login and registra
51
  * 1.1.1 - 2009-03-16 - Prepared plugin for internationalization and fixed a PHP version bug
52
  * 1.1.2 - 2009-03-20 - Updated to allow customization of text below registration form
53
  * 1.2.0 - 2009-03-26 - Added capability to customize page titles for all pages affected by plugin
54
- * 2.0.0 - 2009-03-27 - Completely rewrote plugin to use page template, no more specifying template files & HTML
55
- * 2.0.1 - 2009-03-30 - Fixed a bug that redirected users who were not yet logged in to profile page
4
  Tags: wordpress, login, register, theme, form, james kelly
5
  Requires at least: 2.5
6
  Tested up to: 2.7.1
7
+ Stable tag: 2.0
8
 
9
  This plugin themes the WordPress login, register, forgot password and profile pages to look like the rest of your website.
10
 
51
  * 1.1.1 - 2009-03-16 - Prepared plugin for internationalization and fixed a PHP version bug
52
  * 1.1.2 - 2009-03-20 - Updated to allow customization of text below registration form
53
  * 1.2.0 - 2009-03-26 - Added capability to customize page titles for all pages affected by plugin
54
+ * 2.0.0 - 2009-03-27 - Completely rewrote plugin to use page template, no more specifying template files & HTML
 
theme-my-login.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Theme My Login
4
  Plugin URI: http://webdesign.jaedub.com/wordpress-plugins/theme-my-login-plugin
5
  Description: Themes the WordPress login, register, forgot password and profile pages to look like the rest of your website.
6
- Version: 2.0.1
7
  Author: Jae Dub
8
  Author URI: http://webdesign.jaedub.com
9
 
@@ -23,8 +23,6 @@ Version History
23
  Added capability to customize page titles for all pages affected by plugin
24
  2.0.0 - 2009-03-27
25
  Completely rewrote plugin to use page template, no more specifying template files & HTML
26
- 2.0.1 - 2009-03-30
27
- Fixed a bug that redirected users who were not yet logged in to profile page
28
  */
29
 
30
  if (!class_exists('ThemeMyLogin')) {
@@ -165,7 +163,7 @@ if (!class_exists('ThemeMyLogin')) {
165
  $this->LoadOptions();
166
  $url = $this->QueryURL();
167
 
168
- if ( is_user_logged_in() && is_admin() && current_user_can('edit_posts') === false && !isset($_POST['from']) && $_POST['from'] != 'profile' ) {
169
  $url = $url . 'show=profile';
170
  if ($_GET['updated'] == true)
171
  $url = $url . '&updated=true';
@@ -200,6 +198,7 @@ if (!class_exists('ThemeMyLogin')) {
200
  $this->errors = new WP_Error();
201
 
202
  $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
 
203
 
204
  if ( isset($_GET['key']) )
205
  $action = 'resetpass';
@@ -238,7 +237,7 @@ if (!class_exists('ThemeMyLogin')) {
238
  case 'lostpassword':
239
  case 'retrievepassword':
240
  require('includes/compat.php');
241
- if ( $_POST ) {
242
  $this->errors = retrieve_password();
243
  if ( !is_wp_error($this->errors) ) {
244
  wp_redirect('wp-login.php?checkemail=confirm');
@@ -255,7 +254,7 @@ if (!class_exists('ThemeMyLogin')) {
255
 
256
  $user_login = '';
257
  $user_email = '';
258
- if ( $_POST ) {
259
  require_once( ABSPATH . WPINC . '/registration.php');
260
 
261
  $user_login = $_POST['user_login'];
@@ -351,6 +350,7 @@ if (!class_exists('ThemeMyLogin')) {
351
  if ((is_page()) && ($wp_query->post->ID == $this->GetOption('page_id'))) :
352
 
353
  $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
 
354
 
355
  if ( isset($_GET['key']) )
356
  $action = 'resetpass';
3
  Plugin Name: Theme My Login
4
  Plugin URI: http://webdesign.jaedub.com/wordpress-plugins/theme-my-login-plugin
5
  Description: Themes the WordPress login, register, forgot password and profile pages to look like the rest of your website.
6
+ Version: 2.0
7
  Author: Jae Dub
8
  Author URI: http://webdesign.jaedub.com
9
 
23
  Added capability to customize page titles for all pages affected by plugin
24
  2.0.0 - 2009-03-27
25
  Completely rewrote plugin to use page template, no more specifying template files & HTML
 
 
26
  */
27
 
28
  if (!class_exists('ThemeMyLogin')) {
163
  $this->LoadOptions();
164
  $url = $this->QueryURL();
165
 
166
+ if ( is_admin() && current_user_can('edit_posts') === false && !isset($_POST['from']) && $_POST['from'] != 'profile' ) {
167
  $url = $url . 'show=profile';
168
  if ($_GET['updated'] == true)
169
  $url = $url . '&updated=true';
198
  $this->errors = new WP_Error();
199
 
200
  $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
201
+ $http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
202
 
203
  if ( isset($_GET['key']) )
204
  $action = 'resetpass';
237
  case 'lostpassword':
238
  case 'retrievepassword':
239
  require('includes/compat.php');
240
+ if ( $http_post ) {
241
  $this->errors = retrieve_password();
242
  if ( !is_wp_error($this->errors) ) {
243
  wp_redirect('wp-login.php?checkemail=confirm');
254
 
255
  $user_login = '';
256
  $user_email = '';
257
+ if ( $http_post ) {
258
  require_once( ABSPATH . WPINC . '/registration.php');
259
 
260
  $user_login = $_POST['user_login'];
350
  if ((is_page()) && ($wp_query->post->ID == $this->GetOption('page_id'))) :
351
 
352
  $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
353
+ $http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
354
 
355
  if ( isset($_GET['key']) )
356
  $action = 'resetpass';