Theme My Login - Version 3.0.1

Version Description

  • Fixed a bug that caused a redirection loop when trying to access wp-login.php
  • Fixed a bug that broke the widget admin interface
  • Added the option to show/hide login page from page list
Download this release

Release Info

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

Code changes from version 3.0 to 3.0.1

includes/admin-page.php CHANGED
@@ -5,6 +5,7 @@ if ( $_POST ) {
5
  check_admin_referer('theme-my-login');
6
 
7
  $this->SetOption('uninstall', $_POST['uninstall']);
 
8
  $this->SetOption('login_title', stripslashes($_POST['login_title']));
9
  $this->SetOption('register_title', stripslashes($_POST['register_title']));
10
  $this->SetOption('register_msg', stripslashes($_POST['register_msg']));
@@ -46,6 +47,13 @@ if ( $_POST ) {
46
  <?php _e('Uninstall', 'theme-my-login'); ?>
47
  </td>
48
  </tr>
 
 
 
 
 
 
 
49
  </table>
50
 
51
  <h3><?php _e('Template Settings', 'theme-my-login'); ?></h3>
5
  check_admin_referer('theme-my-login');
6
 
7
  $this->SetOption('uninstall', $_POST['uninstall']);
8
+ $this->SetOption('show_page', $_POST['show_page']);
9
  $this->SetOption('login_title', stripslashes($_POST['login_title']));
10
  $this->SetOption('register_title', stripslashes($_POST['register_title']));
11
  $this->SetOption('register_msg', stripslashes($_POST['register_msg']));
47
  <?php _e('Uninstall', 'theme-my-login'); ?>
48
  </td>
49
  </tr>
50
+ <tr valign="top">
51
+ <th scope="row"><label for="show_page"><?php _e('Page List', 'theme-my-login'); ?></label></th>
52
+ <td>
53
+ <input name="show_page" type="checkbox" id="show_page" value="1" <?php if ($this->GetOption('show_page')) { echo 'checked="checked"'; } ?> />
54
+ <?php _e('Show Login Page', 'theme-my-login'); ?>
55
+ </td>
56
+ </tr>
57
  </table>
58
 
59
  <h3><?php _e('Template Settings', 'theme-my-login'); ?></h3>
language/theme-my-login.pot CHANGED
@@ -1,5 +1,5 @@
1
  # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) YEAR Jeff Farthing
3
  # This file is distributed under the same license as the PACKAGE package.
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
  #
@@ -8,7 +8,7 @@ msgid ""
8
  msgstr ""
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/theme-my-login\n"
11
- "POT-Creation-Date: 2009-07-02 04:02+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -16,67 +16,75 @@ msgstr ""
16
  "Content-Type: text/plain; charset=CHARSET\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
- #: includes/admin-page.php:17
20
  msgid ""
21
  "To complete uninstall, deactivate this plugin. If you do not wish to "
22
  "uninstall, please uncheck the \"Complete Uninstall\" checkbox."
23
  msgstr ""
24
 
25
- #: includes/admin-page.php:19
26
  msgid "Settings saved."
27
  msgstr ""
28
 
29
- #: includes/admin-page.php:25
30
  msgid ""
31
  "If you like this plugin, please help keep it up to date by <a href=\"http://"
32
  "www.jfarthing.com/donate\">donating through PayPal</a>!"
33
  msgstr ""
34
 
35
- #: includes/admin-page.php:35
36
  msgid "Theme My Login Settings"
37
  msgstr ""
38
 
39
- #: includes/admin-page.php:40
40
  msgid "General Settings"
41
  msgstr ""
42
 
43
- #: includes/admin-page.php:43
44
  msgid "Plugin"
45
  msgstr ""
46
 
47
- #: includes/admin-page.php:46
48
  msgid "Uninstall"
49
  msgstr ""
50
 
51
  #: includes/admin-page.php:51
52
- msgid "Template Settings"
53
  msgstr ""
54
 
55
  #: includes/admin-page.php:54
 
 
 
 
 
 
 
 
56
  msgid "Register Title"
57
  msgstr ""
58
 
59
- #: includes/admin-page.php:60
60
  msgid "Register Message"
61
  msgstr ""
62
 
63
- #: includes/admin-page.php:66
64
  msgid "Registration Complete Message"
65
  msgstr ""
66
 
67
- #: includes/admin-page.php:72
68
  msgid "Login Title"
69
  msgstr ""
70
 
71
- #: includes/admin-page.php:78
72
  msgid "Lost Password Title"
73
  msgstr ""
74
 
75
- #: includes/admin-page.php:84
76
  msgid "Lost Password Message"
77
  msgstr ""
78
 
79
- #: includes/admin-page.php:91
80
  msgid "Save Changes"
81
  msgstr ""
82
 
@@ -90,7 +98,7 @@ msgstr ""
90
  msgid "[%s] Password Lost/Changed"
91
  msgstr ""
92
 
93
- #: includes/wp-login-actions.php:61
94
  msgid "Sorry, that key does not appear to be valid."
95
  msgstr ""
96
 
@@ -98,180 +106,180 @@ msgstr ""
98
  msgid "Username or E-mail:"
99
  msgstr ""
100
 
101
- #: includes/wp-login-forms.php:24
102
  msgid "Get New Password"
103
  msgstr ""
104
 
105
- #: includes/wp-login-forms.php:39 includes/wp-login-forms.php:92
106
  msgid "Username"
107
  msgstr ""
108
 
109
- #: includes/wp-login-forms.php:43
110
  msgid "E-mail"
111
  msgstr ""
112
 
113
- #: includes/wp-login-forms.php:48 includes/wp-login-functions.php:47
114
- #: theme-my-login.php:89
115
  msgid "Register"
116
  msgstr ""
117
 
118
- #: includes/wp-login-forms.php:75
119
  msgid ""
120
  "<strong>ERROR</strong>: Cookies are blocked or not supported by your "
121
  "browser. You must <a href='http://www.google.com/cookies.html'>enable "
122
  "cookies</a> to use WordPress."
123
  msgstr ""
124
 
125
- #: includes/wp-login-forms.php:78
126
  msgid "You are now logged out."
127
  msgstr ""
128
 
129
- #: includes/wp-login-forms.php:79
130
  msgid "User registration is currently not allowed."
131
  msgstr ""
132
 
133
- #: includes/wp-login-forms.php:80
134
  msgid "Check your e-mail for the confirmation link."
135
  msgstr ""
136
 
137
- #: includes/wp-login-forms.php:81
138
  msgid "Check your e-mail for your new password."
139
  msgstr ""
140
 
141
- #: includes/wp-login-forms.php:82 theme-my-login.php:91
142
  msgid "Registration complete. Please check your e-mail."
143
  msgstr ""
144
 
145
- #: includes/wp-login-forms.php:96
146
  msgid "Password"
147
  msgstr ""
148
 
149
- #: includes/wp-login-forms.php:100
150
  msgid "Remember Me"
151
  msgstr ""
152
 
153
- #: includes/wp-login-forms.php:102 theme-my-login.php:88
154
  msgid "Log In"
155
  msgstr ""
156
 
157
- #: includes/wp-login-functions.php:45
158
  msgid "Log in"
159
  msgstr ""
160
 
161
- #: includes/wp-login-functions.php:49
162
  msgid "Password Lost and Found"
163
  msgstr ""
164
 
165
- #: includes/wp-login-functions.php:49
166
  msgid "Lost your password?"
167
  msgstr ""
168
 
169
- #: includes/wp-login-functions.php:62
170
  msgid "<strong>ERROR</strong>: Enter a username or e-mail address."
171
  msgstr ""
172
 
173
- #: includes/wp-login-functions.php:67
174
  msgid ""
175
  "<strong>ERROR</strong>: There is no user registered with that email address."
176
  msgstr ""
177
 
178
- #: includes/wp-login-functions.php:79
179
  msgid "<strong>ERROR</strong>: Invalid username or e-mail."
180
  msgstr ""
181
 
182
- #: includes/wp-login-functions.php:93
183
  msgid "Password reset is not allowed for this user"
184
  msgstr ""
185
 
186
- #: includes/wp-login-functions.php:105
187
  msgid ""
188
  "Someone has asked to reset the password for the following site and username."
189
  msgstr ""
190
 
191
- #: includes/wp-login-functions.php:107 includes/wp-login-functions.php:136
192
  #, php-format
193
  msgid "Username: %s"
194
  msgstr ""
195
 
196
- #: includes/wp-login-functions.php:108
197
  msgid ""
198
  "To reset your password visit the following address, otherwise just ignore "
199
  "this email and nothing will happen."
200
  msgstr ""
201
 
202
- #: includes/wp-login-functions.php:111
203
  #, php-format
204
  msgid "[%s] Password Reset"
205
  msgstr ""
206
 
207
- #: includes/wp-login-functions.php:112 includes/wp-login-functions.php:141
208
  msgid "The e-mail could not be sent."
209
  msgstr ""
210
 
211
- #: includes/wp-login-functions.php:112 includes/wp-login-functions.php:141
212
  msgid "Possible reason: your host may have disabled the mail() function..."
213
  msgstr ""
214
 
215
- #: includes/wp-login-functions.php:125 includes/wp-login-functions.php:129
216
  msgid "Invalid key"
217
  msgstr ""
218
 
219
- #: includes/wp-login-functions.php:137
220
  #, php-format
221
  msgid "Password: %s"
222
  msgstr ""
223
 
224
- #: includes/wp-login-functions.php:140
225
  #, php-format
226
  msgid "[%s] Your new password"
227
  msgstr ""
228
 
229
- #: includes/wp-login-functions.php:158
230
  msgid "<strong>ERROR</strong>: Please enter a username."
231
  msgstr ""
232
 
233
- #: includes/wp-login-functions.php:160
234
  msgid ""
235
  "<strong>ERROR</strong>: This username is invalid. Please enter a valid "
236
  "username."
237
  msgstr ""
238
 
239
- #: includes/wp-login-functions.php:163
240
  msgid ""
241
  "<strong>ERROR</strong>: This username is already registered, please choose "
242
  "another one."
243
  msgstr ""
244
 
245
- #: includes/wp-login-functions.php:167
246
  msgid "<strong>ERROR</strong>: Please type your e-mail address."
247
  msgstr ""
248
 
249
- #: includes/wp-login-functions.php:169
250
  msgid "<strong>ERROR</strong>: The email address isn&#8217;t correct."
251
  msgstr ""
252
 
253
- #: includes/wp-login-functions.php:172
254
  msgid ""
255
  "<strong>ERROR</strong>: This email is already registered, please choose "
256
  "another one."
257
  msgstr ""
258
 
259
- #: includes/wp-login-functions.php:184
260
  #, php-format
261
  msgid ""
262
  "<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a "
263
  "href=\"mailto:%s\">webmaster</a> !"
264
  msgstr ""
265
 
266
- #: theme-my-login.php:90
267
  msgid "A password will be e-mailed to you."
268
  msgstr ""
269
 
270
- #: theme-my-login.php:92
271
  msgid "Lost Password"
272
  msgstr ""
273
 
274
- #: theme-my-login.php:93
275
  msgid ""
276
  "Please enter your username or e-mail address. You will receive a new "
277
  "password via e-mail."
@@ -279,10 +287,26 @@ msgstr ""
279
 
280
  #. #-#-#-#-# plugin.pot (PACKAGE VERSION) #-#-#-#-#
281
  #. Plugin Name of an extension
282
- #: theme-my-login.php:126
283
  msgid "Theme My Login"
284
  msgstr ""
285
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
  #. Plugin URI of an extension
287
  msgid "http://www.jfarthing.com/wordpress-plugins/theme-my-login-plugin"
288
  msgstr ""
@@ -294,7 +318,7 @@ msgid ""
294
  msgstr ""
295
 
296
  #. Author of an extension
297
- msgid "Jeff Farthing"
298
  msgstr ""
299
 
300
  #. Author URI of an extension
1
  # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR Jae Dub
3
  # This file is distributed under the same license as the PACKAGE package.
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
  #
8
  msgstr ""
9
  "Project-Id-Version: PACKAGE VERSION\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/theme-my-login\n"
11
+ "POT-Creation-Date: 2009-07-12 04:08+0000\n"
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
  "Content-Type: text/plain; charset=CHARSET\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
+ #: includes/admin-page.php:18
20
  msgid ""
21
  "To complete uninstall, deactivate this plugin. If you do not wish to "
22
  "uninstall, please uncheck the \"Complete Uninstall\" checkbox."
23
  msgstr ""
24
 
25
+ #: includes/admin-page.php:20
26
  msgid "Settings saved."
27
  msgstr ""
28
 
29
+ #: includes/admin-page.php:26
30
  msgid ""
31
  "If you like this plugin, please help keep it up to date by <a href=\"http://"
32
  "www.jfarthing.com/donate\">donating through PayPal</a>!"
33
  msgstr ""
34
 
35
+ #: includes/admin-page.php:36
36
  msgid "Theme My Login Settings"
37
  msgstr ""
38
 
39
+ #: includes/admin-page.php:41
40
  msgid "General Settings"
41
  msgstr ""
42
 
43
+ #: includes/admin-page.php:44
44
  msgid "Plugin"
45
  msgstr ""
46
 
47
+ #: includes/admin-page.php:47
48
  msgid "Uninstall"
49
  msgstr ""
50
 
51
  #: includes/admin-page.php:51
52
+ msgid "Page List"
53
  msgstr ""
54
 
55
  #: includes/admin-page.php:54
56
+ msgid "Show Login Page"
57
+ msgstr ""
58
+
59
+ #: includes/admin-page.php:59
60
+ msgid "Template Settings"
61
+ msgstr ""
62
+
63
+ #: includes/admin-page.php:62
64
  msgid "Register Title"
65
  msgstr ""
66
 
67
+ #: includes/admin-page.php:68
68
  msgid "Register Message"
69
  msgstr ""
70
 
71
+ #: includes/admin-page.php:74
72
  msgid "Registration Complete Message"
73
  msgstr ""
74
 
75
+ #: includes/admin-page.php:80
76
  msgid "Login Title"
77
  msgstr ""
78
 
79
+ #: includes/admin-page.php:86
80
  msgid "Lost Password Title"
81
  msgstr ""
82
 
83
+ #: includes/admin-page.php:92
84
  msgid "Lost Password Message"
85
  msgstr ""
86
 
87
+ #: includes/admin-page.php:99
88
  msgid "Save Changes"
89
  msgstr ""
90
 
98
  msgid "[%s] Password Lost/Changed"
99
  msgstr ""
100
 
101
+ #: includes/wp-login-actions.php:63
102
  msgid "Sorry, that key does not appear to be valid."
103
  msgstr ""
104
 
106
  msgid "Username or E-mail:"
107
  msgstr ""
108
 
109
+ #: includes/wp-login-forms.php:27
110
  msgid "Get New Password"
111
  msgstr ""
112
 
113
+ #: includes/wp-login-forms.php:43 includes/wp-login-forms.php:100
114
  msgid "Username"
115
  msgstr ""
116
 
117
+ #: includes/wp-login-forms.php:47
118
  msgid "E-mail"
119
  msgstr ""
120
 
121
+ #: includes/wp-login-forms.php:55 includes/wp-login-functions.php:72
122
+ #: theme-my-login.php:91
123
  msgid "Register"
124
  msgstr ""
125
 
126
+ #: includes/wp-login-forms.php:83
127
  msgid ""
128
  "<strong>ERROR</strong>: Cookies are blocked or not supported by your "
129
  "browser. You must <a href='http://www.google.com/cookies.html'>enable "
130
  "cookies</a> to use WordPress."
131
  msgstr ""
132
 
133
+ #: includes/wp-login-forms.php:86
134
  msgid "You are now logged out."
135
  msgstr ""
136
 
137
+ #: includes/wp-login-forms.php:87
138
  msgid "User registration is currently not allowed."
139
  msgstr ""
140
 
141
+ #: includes/wp-login-forms.php:88
142
  msgid "Check your e-mail for the confirmation link."
143
  msgstr ""
144
 
145
+ #: includes/wp-login-forms.php:89
146
  msgid "Check your e-mail for your new password."
147
  msgstr ""
148
 
149
+ #: includes/wp-login-forms.php:90 theme-my-login.php:93
150
  msgid "Registration complete. Please check your e-mail."
151
  msgstr ""
152
 
153
+ #: includes/wp-login-forms.php:104
154
  msgid "Password"
155
  msgstr ""
156
 
157
+ #: includes/wp-login-forms.php:108
158
  msgid "Remember Me"
159
  msgstr ""
160
 
161
+ #: includes/wp-login-forms.php:112 theme-my-login.php:90
162
  msgid "Log In"
163
  msgstr ""
164
 
165
+ #: includes/wp-login-functions.php:68
166
  msgid "Log in"
167
  msgstr ""
168
 
169
+ #: includes/wp-login-functions.php:76
170
  msgid "Password Lost and Found"
171
  msgstr ""
172
 
173
+ #: includes/wp-login-functions.php:76
174
  msgid "Lost your password?"
175
  msgstr ""
176
 
177
+ #: includes/wp-login-functions.php:90
178
  msgid "<strong>ERROR</strong>: Enter a username or e-mail address."
179
  msgstr ""
180
 
181
+ #: includes/wp-login-functions.php:95
182
  msgid ""
183
  "<strong>ERROR</strong>: There is no user registered with that email address."
184
  msgstr ""
185
 
186
+ #: includes/wp-login-functions.php:107
187
  msgid "<strong>ERROR</strong>: Invalid username or e-mail."
188
  msgstr ""
189
 
190
+ #: includes/wp-login-functions.php:121
191
  msgid "Password reset is not allowed for this user"
192
  msgstr ""
193
 
194
+ #: includes/wp-login-functions.php:133
195
  msgid ""
196
  "Someone has asked to reset the password for the following site and username."
197
  msgstr ""
198
 
199
+ #: includes/wp-login-functions.php:135 includes/wp-login-functions.php:164
200
  #, php-format
201
  msgid "Username: %s"
202
  msgstr ""
203
 
204
+ #: includes/wp-login-functions.php:136
205
  msgid ""
206
  "To reset your password visit the following address, otherwise just ignore "
207
  "this email and nothing will happen."
208
  msgstr ""
209
 
210
+ #: includes/wp-login-functions.php:139
211
  #, php-format
212
  msgid "[%s] Password Reset"
213
  msgstr ""
214
 
215
+ #: includes/wp-login-functions.php:140 includes/wp-login-functions.php:169
216
  msgid "The e-mail could not be sent."
217
  msgstr ""
218
 
219
+ #: includes/wp-login-functions.php:140 includes/wp-login-functions.php:169
220
  msgid "Possible reason: your host may have disabled the mail() function..."
221
  msgstr ""
222
 
223
+ #: includes/wp-login-functions.php:153 includes/wp-login-functions.php:157
224
  msgid "Invalid key"
225
  msgstr ""
226
 
227
+ #: includes/wp-login-functions.php:165
228
  #, php-format
229
  msgid "Password: %s"
230
  msgstr ""
231
 
232
+ #: includes/wp-login-functions.php:168
233
  #, php-format
234
  msgid "[%s] Your new password"
235
  msgstr ""
236
 
237
+ #: includes/wp-login-functions.php:186
238
  msgid "<strong>ERROR</strong>: Please enter a username."
239
  msgstr ""
240
 
241
+ #: includes/wp-login-functions.php:188
242
  msgid ""
243
  "<strong>ERROR</strong>: This username is invalid. Please enter a valid "
244
  "username."
245
  msgstr ""
246
 
247
+ #: includes/wp-login-functions.php:191
248
  msgid ""
249
  "<strong>ERROR</strong>: This username is already registered, please choose "
250
  "another one."
251
  msgstr ""
252
 
253
+ #: includes/wp-login-functions.php:195
254
  msgid "<strong>ERROR</strong>: Please type your e-mail address."
255
  msgstr ""
256
 
257
+ #: includes/wp-login-functions.php:197
258
  msgid "<strong>ERROR</strong>: The email address isn&#8217;t correct."
259
  msgstr ""
260
 
261
+ #: includes/wp-login-functions.php:200
262
  msgid ""
263
  "<strong>ERROR</strong>: This email is already registered, please choose "
264
  "another one."
265
  msgstr ""
266
 
267
+ #: includes/wp-login-functions.php:212
268
  #, php-format
269
  msgid ""
270
  "<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a "
271
  "href=\"mailto:%s\">webmaster</a> !"
272
  msgstr ""
273
 
274
+ #: theme-my-login.php:92
275
  msgid "A password will be e-mailed to you."
276
  msgstr ""
277
 
278
+ #: theme-my-login.php:94
279
  msgid "Lost Password"
280
  msgstr ""
281
 
282
+ #: theme-my-login.php:95
283
  msgid ""
284
  "Please enter your username or e-mail address. You will receive a new "
285
  "password via e-mail."
287
 
288
  #. #-#-#-#-# plugin.pot (PACKAGE VERSION) #-#-#-#-#
289
  #. Plugin Name of an extension
290
+ #: theme-my-login.php:135
291
  msgid "Theme My Login"
292
  msgstr ""
293
 
294
+ #: theme-my-login.php:275
295
+ msgid "Welcome"
296
+ msgstr ""
297
+
298
+ #: theme-my-login.php:282
299
+ msgid "Dashboard"
300
+ msgstr ""
301
+
302
+ #: theme-my-login.php:285
303
+ msgid "Profile"
304
+ msgstr ""
305
+
306
+ #: theme-my-login.php:288
307
+ msgid "Logout"
308
+ msgstr ""
309
+
310
  #. Plugin URI of an extension
311
  msgid "http://www.jfarthing.com/wordpress-plugins/theme-my-login-plugin"
312
  msgstr ""
318
  msgstr ""
319
 
320
  #. Author of an extension
321
+ msgid "Jae Dub"
322
  msgstr ""
323
 
324
  #. Author URI of an extension
readme.txt CHANGED
@@ -26,6 +26,11 @@ None yet. Please visit http://www.jfarthing.com/forum for any support!
26
 
27
  == Changelog ==
28
 
 
 
 
 
 
29
  = 3.0 =
30
  * Added a login widget
31
 
26
 
27
  == Changelog ==
28
 
29
+ = 3.0.1 =
30
+ * Fixed a bug that caused a redirection loop when trying to access wp-login.php
31
+ * Fixed a bug that broke the widget admin interface
32
+ * Added the option to show/hide login page from page list
33
+
34
  = 3.0 =
35
  * Added a login widget
36
 
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.0
7
  Author: Jae Dub
8
  Author URI: http://www.jfarthing.com
9
  */
@@ -26,7 +26,7 @@ if ($wp_version < '2.6') {
26
  if (!class_exists('ThemeMyLogin')) {
27
  class ThemeMyLogin {
28
 
29
- var $version = '3.0';
30
  var $options = array();
31
  var $permalink = '';
32
 
@@ -86,6 +86,7 @@ if (!class_exists('ThemeMyLogin')) {
86
  function InitOptions() {
87
  $this->options['uninstall'] = 0;
88
  $this->options['page_id'] = 0;
 
89
  $this->options['login_title'] = __('Log In', 'theme-my-login');
90
  $this->options['register_title'] = __('Register', 'theme-my-login');
91
  $this->options['register_msg'] = __('A password will be e-mailed to you.', 'theme-my-login');
@@ -162,7 +163,7 @@ if (!class_exists('ThemeMyLogin')) {
162
  switch ($pagenow) {
163
  case 'wp-register.php':
164
  case 'wp-login.php':
165
- $redirect_to = admin_url();
166
  wp_redirect($redirect_to);
167
  exit;
168
  break;
@@ -235,7 +236,8 @@ if (!class_exists('ThemeMyLogin')) {
235
  }
236
 
237
  function ListPagesExcludes($excludes) {
238
- $excludes[] = $this->GetOption( 'page_id' );
 
239
 
240
  return $excludes;
241
  }
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.0.1
7
  Author: Jae Dub
8
  Author URI: http://www.jfarthing.com
9
  */
26
  if (!class_exists('ThemeMyLogin')) {
27
  class ThemeMyLogin {
28
 
29
+ var $version = '3.0.1';
30
  var $options = array();
31
  var $permalink = '';
32
 
86
  function InitOptions() {
87
  $this->options['uninstall'] = 0;
88
  $this->options['page_id'] = 0;
89
+ $this->options['show_page'] = 0;
90
  $this->options['login_title'] = __('Log In', 'theme-my-login');
91
  $this->options['register_title'] = __('Register', 'theme-my-login');
92
  $this->options['register_msg'] = __('A password will be e-mailed to you.', 'theme-my-login');
163
  switch ($pagenow) {
164
  case 'wp-register.php':
165
  case 'wp-login.php':
166
+ $redirect_to = add_query_arg($_GET, $this->permalink);
167
  wp_redirect($redirect_to);
168
  exit;
169
  break;
236
  }
237
 
238
  function ListPagesExcludes($excludes) {
239
+ if (!$this->GetOption('show_page'))
240
+ $excludes[] = $this->GetOption( 'page_id' );
241
 
242
  return $excludes;
243
  }