Version Description
Download this release
Release Info
Developer | jfarthing84 |
Plugin | Theme My Login |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 2.0.1
- readme.txt +3 -2
- theme-my-login.php +12 -11
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
|
8 |
|
9 |
This plugin themes the WordPress login, register, forgot password and profile pages to look like the rest of your website.
|
10 |
|
@@ -51,4 +51,5 @@ 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
|
|
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 |
* 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
|
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
|
7 |
Author: Jae Dub
|
8 |
Author URI: http://webdesign.jaedub.com
|
9 |
|
@@ -23,6 +23,8 @@ 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 |
*/
|
27 |
|
28 |
if (!class_exists('ThemeMyLogin')) {
|
@@ -68,7 +70,9 @@ if (!class_exists('ThemeMyLogin')) {
|
|
68 |
'post_status' => 'publish',
|
69 |
'post_type' => 'page',
|
70 |
'post_author' => 1,
|
71 |
-
'post_content' => 'Please do not edit or remove me!'
|
|
|
|
|
72 |
);
|
73 |
|
74 |
$theme_my_login = wp_insert_post($insert);
|
@@ -161,11 +165,11 @@ if (!class_exists('ThemeMyLogin')) {
|
|
161 |
$this->LoadOptions();
|
162 |
$url = $this->QueryURL();
|
163 |
|
164 |
-
if ( is_admin() && current_user_can('edit_posts') === false && !isset($_POST['from']) && $_POST['from'] != 'profile' ) {
|
165 |
-
$
|
166 |
if ($_GET['updated'] == true)
|
167 |
-
$
|
168 |
-
wp_safe_redirect($
|
169 |
exit;
|
170 |
}
|
171 |
|
@@ -215,8 +219,6 @@ if (!class_exists('ThemeMyLogin')) {
|
|
215 |
setcookie(TEST_COOKIE, 'Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
|
216 |
if ( SITECOOKIEPATH != COOKIEPATH )
|
217 |
setcookie(TEST_COOKIE, 'Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
|
218 |
-
|
219 |
-
$http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
|
220 |
|
221 |
if (isset($_POST['show']) && $_POST['show'] == 'profile') {
|
222 |
if ( !$user_id ) {
|
@@ -236,7 +238,7 @@ if (!class_exists('ThemeMyLogin')) {
|
|
236 |
case 'lostpassword':
|
237 |
case 'retrievepassword':
|
238 |
require('includes/compat.php');
|
239 |
-
if ( $
|
240 |
$this->errors = retrieve_password();
|
241 |
if ( !is_wp_error($this->errors) ) {
|
242 |
wp_redirect('wp-login.php?checkemail=confirm');
|
@@ -253,7 +255,7 @@ if (!class_exists('ThemeMyLogin')) {
|
|
253 |
|
254 |
$user_login = '';
|
255 |
$user_email = '';
|
256 |
-
if ( $
|
257 |
require_once( ABSPATH . WPINC . '/registration.php');
|
258 |
|
259 |
$user_login = $_POST['user_login'];
|
@@ -349,7 +351,6 @@ if (!class_exists('ThemeMyLogin')) {
|
|
349 |
if ((is_page()) && ($wp_query->post->ID == $this->GetOption('page_id'))) :
|
350 |
|
351 |
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
|
352 |
-
$http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
|
353 |
|
354 |
if ( isset($_GET['key']) )
|
355 |
$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.1
|
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 |
+
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')) {
|
70 |
'post_status' => 'publish',
|
71 |
'post_type' => 'page',
|
72 |
'post_author' => 1,
|
73 |
+
'post_content' => 'Please do not edit or remove me!',
|
74 |
+
'commen_status' => 'closed',
|
75 |
+
'ping_status' => 'closed'
|
76 |
);
|
77 |
|
78 |
$theme_my_login = wp_insert_post($insert);
|
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';
|
172 |
+
wp_safe_redirect($url);
|
173 |
exit;
|
174 |
}
|
175 |
|
219 |
setcookie(TEST_COOKIE, 'Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
|
220 |
if ( SITECOOKIEPATH != COOKIEPATH )
|
221 |
setcookie(TEST_COOKIE, 'Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
|
|
|
|
|
222 |
|
223 |
if (isset($_POST['show']) && $_POST['show'] == 'profile') {
|
224 |
if ( !$user_id ) {
|
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 |
|
256 |
$user_login = '';
|
257 |
$user_email = '';
|
258 |
+
if ( $_POST ) {
|
259 |
require_once( ABSPATH . WPINC . '/registration.php');
|
260 |
|
261 |
$user_login = $_POST['user_login'];
|
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';
|