Version Description
- Implement a TML action selector for pages
- Fix error about cookies not being enabled when they are
Download this release
Release Info
Developer | jfarthing84 |
Plugin | Theme My Login |
Version | 6.4.13 |
Comparing to | |
See all releases |
Code changes from version 6.4.12 to 6.4.13
- admin/class-theme-my-login-admin.php +56 -1
- includes/class-theme-my-login.php +38 -35
- languages/theme-my-login.pot +52 -47
- modules/themed-profiles/themed-profiles.php +15 -2
- readme.txt +5 -1
- templates/login-form.php +0 -1
- theme-my-login.php +1 -1
admin/class-theme-my-login-admin.php
CHANGED
@@ -54,6 +54,9 @@ class Theme_My_Login_Admin extends Theme_My_Login_Abstract {
|
|
54 |
add_action( 'admin_menu', array( $this, 'admin_menu' ), 8 );
|
55 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ), 11 );
|
56 |
|
|
|
|
|
|
|
57 |
register_uninstall_hook( THEME_MY_LOGIN_PATH . '/theme-my-login.php', array( 'Theme_My_Login_Admin', 'uninstall' ) );
|
58 |
}
|
59 |
|
@@ -122,6 +125,59 @@ class Theme_My_Login_Admin extends Theme_My_Login_Abstract {
|
|
122 |
) );
|
123 |
}
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
/**
|
126 |
* Renders the settings page
|
127 |
*
|
@@ -427,4 +483,3 @@ class Theme_My_Login_Admin extends Theme_My_Login_Abstract {
|
|
427 |
}
|
428 |
}
|
429 |
endif; // Class exists
|
430 |
-
|
54 |
add_action( 'admin_menu', array( $this, 'admin_menu' ), 8 );
|
55 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ), 11 );
|
56 |
|
57 |
+
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
|
58 |
+
add_action( 'save_post', array( $this, 'save_action_meta_box' ) );
|
59 |
+
|
60 |
register_uninstall_hook( THEME_MY_LOGIN_PATH . '/theme-my-login.php', array( 'Theme_My_Login_Admin', 'uninstall' ) );
|
61 |
}
|
62 |
|
125 |
) );
|
126 |
}
|
127 |
|
128 |
+
/**
|
129 |
+
* Adds the TML Action meta box.
|
130 |
+
*
|
131 |
+
* @since 6.4.13
|
132 |
+
*/
|
133 |
+
public function add_meta_boxes() {
|
134 |
+
add_meta_box(
|
135 |
+
'tml_action',
|
136 |
+
__( 'Theme My Login Action', 'theme-my-login' ),
|
137 |
+
array( $this, 'action_meta_box' ),
|
138 |
+
'page',
|
139 |
+
'side'
|
140 |
+
);
|
141 |
+
}
|
142 |
+
|
143 |
+
/**
|
144 |
+
* Renders the TML Action meta box.
|
145 |
+
*
|
146 |
+
* @since 6.4.13
|
147 |
+
*
|
148 |
+
* @param WP_Post $post The post object.
|
149 |
+
*/
|
150 |
+
public function action_meta_box( $post ) {
|
151 |
+
$page_action = get_post_meta( $post->ID, '_tml_action', true );
|
152 |
+
?>
|
153 |
+
|
154 |
+
<select name="tml_action" id="tml_action">
|
155 |
+
<option value=""></option>
|
156 |
+
<?php foreach ( Theme_My_Login::default_pages() as $action => $label ) : ?>
|
157 |
+
<option value="<?php echo esc_attr( $action ); ?>"<?php selected( $action, $page_action ); ?>><?php echo esc_html( $label ); ?></option>
|
158 |
+
<?php endforeach; ?>
|
159 |
+
</select>
|
160 |
+
|
161 |
+
<?php
|
162 |
+
}
|
163 |
+
|
164 |
+
/**
|
165 |
+
* Saves the TML Action meta box.
|
166 |
+
*
|
167 |
+
* @since 6.4.13
|
168 |
+
*
|
169 |
+
* @param int $post_id The post ID.
|
170 |
+
*/
|
171 |
+
public function save_action_meta_box( $post_id ) {
|
172 |
+
if ( 'page' != get_post_type( $post_id ) ) {
|
173 |
+
return;
|
174 |
+
}
|
175 |
+
|
176 |
+
if ( isset( $_POST['tml_action'] ) ) {
|
177 |
+
update_post_meta( $post_id, '_tml_action', sanitize_key( $_POST['tml_action'] ) );
|
178 |
+
}
|
179 |
+
}
|
180 |
+
|
181 |
/**
|
182 |
* Renders the settings page
|
183 |
*
|
483 |
}
|
484 |
}
|
485 |
endif; // Class exists
|
|
includes/class-theme-my-login.php
CHANGED
@@ -21,7 +21,7 @@ class Theme_My_Login extends Theme_My_Login_Abstract {
|
|
21 |
* @since 6.3.2
|
22 |
* @const string
|
23 |
*/
|
24 |
-
const VERSION = '6.4.
|
25 |
|
26 |
/**
|
27 |
* Holds options key
|
@@ -322,20 +322,9 @@ class Theme_My_Login extends Theme_My_Login_Abstract {
|
|
322 |
* @access public
|
323 |
*/
|
324 |
public function template_redirect() {
|
325 |
-
if ( ! $this->request_action && self::is_tml_page() )
|
326 |
-
$this->request_action = self::get_page_action( get_the_id() );
|
327 |
|
328 |
do_action_ref_array( 'tml_request', array( &$this ) );
|
329 |
|
330 |
-
//Set a cookie now to see if they are supported by the browser.
|
331 |
-
$secure = ( 'https' === parse_url( wp_login_url(), PHP_URL_SCHEME ) );
|
332 |
-
if ( ! isset( $_COOKIE[ TEST_COOKIE ] ) ) {
|
333 |
-
setcookie( TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN, $secure );
|
334 |
-
if ( SITECOOKIEPATH != COOKIEPATH ) {
|
335 |
-
setcookie( TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN, $secure );
|
336 |
-
}
|
337 |
-
}
|
338 |
-
|
339 |
// allow plugins to override the default actions, and to add extra actions if they want
|
340 |
do_action( 'login_form_' . $this->request_action );
|
341 |
|
@@ -524,9 +513,20 @@ class Theme_My_Login extends Theme_My_Login_Abstract {
|
|
524 |
|
525 |
$reauth = empty( $_REQUEST['reauth'] ) ? false : true;
|
526 |
|
527 |
-
if ( $
|
528 |
|
529 |
-
$user = wp_signon(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
530 |
|
531 |
if ( empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) {
|
532 |
if ( headers_sent() ) {
|
@@ -537,7 +537,7 @@ class Theme_My_Login extends Theme_My_Login_Abstract {
|
|
537 |
__( 'https://codex.wordpress.org/Cookies' ), __( 'https://wordpress.org/support/' )
|
538 |
)
|
539 |
);
|
540 |
-
}
|
541 |
// If cookies are disabled we can't log in even with a valid user+pass
|
542 |
/* translators: 1: Browser cookie documentation URL */
|
543 |
$user = new WP_Error(
|
@@ -547,10 +547,10 @@ class Theme_My_Login extends Theme_My_Login_Abstract {
|
|
547 |
)
|
548 |
);
|
549 |
}
|
|
|
|
|
550 |
}
|
551 |
|
552 |
-
$redirect_to = apply_filters( 'login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user );
|
553 |
-
|
554 |
if ( ! is_wp_error( $user ) && ! $reauth ) {
|
555 |
if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) {
|
556 |
// If the user doesn't belong to a blog, send them to user admin. If the user can't edit posts, send them to their profile.
|
@@ -575,23 +575,26 @@ class Theme_My_Login extends Theme_My_Login_Abstract {
|
|
575 |
if ( ! empty( $_GET['loggedout'] ) || $reauth )
|
576 |
$this->errors = new WP_Error();
|
577 |
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
|
|
|
|
|
|
595 |
|
596 |
// Clear any stale cookies.
|
597 |
if ( $reauth )
|
@@ -1214,7 +1217,7 @@ if(typeof wpOnload=='function')wpOnload()
|
|
1214 |
|
1215 |
if ( $instance->get_option( 'instance' ) === $this->request_instance ) {
|
1216 |
$instance->set_active();
|
1217 |
-
$instance->set_option( 'default_action', $this->request_action );
|
1218 |
}
|
1219 |
|
1220 |
$this->loaded_instances[] = $instance;
|
21 |
* @since 6.3.2
|
22 |
* @const string
|
23 |
*/
|
24 |
+
const VERSION = '6.4.13';
|
25 |
|
26 |
/**
|
27 |
* Holds options key
|
322 |
* @access public
|
323 |
*/
|
324 |
public function template_redirect() {
|
|
|
|
|
325 |
|
326 |
do_action_ref_array( 'tml_request', array( &$this ) );
|
327 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
// allow plugins to override the default actions, and to add extra actions if they want
|
329 |
do_action( 'login_form_' . $this->request_action );
|
330 |
|
513 |
|
514 |
$reauth = empty( $_REQUEST['reauth'] ) ? false : true;
|
515 |
|
516 |
+
if ( isset( $_POST['log'] ) || isset( $_GET['testcookie'] ) ) {
|
517 |
|
518 |
+
$user = wp_signon( array(), $secure_cookie );
|
519 |
+
|
520 |
+
$redirect_to = apply_filters( 'login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user );
|
521 |
+
|
522 |
+
if ( ! is_wp_error( $user ) && empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) {
|
523 |
+
$redirect_to = add_query_arg( array(
|
524 |
+
'testcookie' => 1,
|
525 |
+
'redirect_to' => $redirect_to
|
526 |
+
) );
|
527 |
+
wp_redirect( $redirect_to );
|
528 |
+
exit;
|
529 |
+
}
|
530 |
|
531 |
if ( empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) {
|
532 |
if ( headers_sent() ) {
|
537 |
__( 'https://codex.wordpress.org/Cookies' ), __( 'https://wordpress.org/support/' )
|
538 |
)
|
539 |
);
|
540 |
+
} else {
|
541 |
// If cookies are disabled we can't log in even with a valid user+pass
|
542 |
/* translators: 1: Browser cookie documentation URL */
|
543 |
$user = new WP_Error(
|
547 |
)
|
548 |
);
|
549 |
}
|
550 |
+
} else {
|
551 |
+
$user = wp_get_current_user();
|
552 |
}
|
553 |
|
|
|
|
|
554 |
if ( ! is_wp_error( $user ) && ! $reauth ) {
|
555 |
if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) {
|
556 |
// If the user doesn't belong to a blog, send them to user admin. If the user can't edit posts, send them to their profile.
|
575 |
if ( ! empty( $_GET['loggedout'] ) || $reauth )
|
576 |
$this->errors = new WP_Error();
|
577 |
|
578 |
+
if ( $interim_login ) {
|
579 |
+
if ( ! $errors->get_error_code() )
|
580 |
+
$errors->add( 'expired', __( 'Your session has expired. Please log in to continue where you left off.', 'theme-my-login' ), 'message' );
|
581 |
+
} else {
|
582 |
+
// Some parts of this script use the main login form to display a message
|
583 |
+
if ( isset( $_GET['loggedout'] ) && true == $_GET['loggedout'] )
|
584 |
+
$this->errors->add( 'loggedout', __( 'You are now logged out.', 'theme-my-login' ), 'message' );
|
585 |
+
elseif ( isset( $_GET['registration'] ) && 'disabled' == $_GET['registration'] )
|
586 |
+
$this->errors->add( 'registerdisabled', __( 'User registration is currently not allowed.', 'theme-my-login' ) );
|
587 |
+
elseif ( isset( $_GET['checkemail'] ) && 'confirm' == $_GET['checkemail'] )
|
588 |
+
$this->errors->add( 'confirm', __( 'Check your email for the confirmation link.', 'theme-my-login' ), 'message' );
|
589 |
+
elseif ( isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail'] )
|
590 |
+
$this->errors->add( 'newpass', __( 'Check your email for your new password.', 'theme-my-login' ), 'message' );
|
591 |
+
elseif ( isset( $_GET['resetpass'] ) && 'complete' == $_GET['resetpass'] )
|
592 |
+
$this->errors->add( 'password_reset', __( 'Your password has been reset.', 'theme-my-login' ), 'message' );
|
593 |
+
elseif ( isset( $_GET['checkemail'] ) && 'registered' == $_GET['checkemail'] )
|
594 |
+
$this->errors->add( 'registered', __( 'Registration complete. Please check your email.', 'theme-my-login' ), 'message' );
|
595 |
+
elseif ( strpos( $redirect_to, 'about.php?updated' ) )
|
596 |
+
$this->errors->add('updated', __( '<strong>You have successfully updated WordPress!</strong> Please log back in to see what’s new.', 'theme-my-login' ), 'message' );
|
597 |
+
}
|
598 |
|
599 |
// Clear any stale cookies.
|
600 |
if ( $reauth )
|
1217 |
|
1218 |
if ( $instance->get_option( 'instance' ) === $this->request_instance ) {
|
1219 |
$instance->set_active();
|
1220 |
+
$instance->set_option( 'default_action', $this->request_action ? $this->request_action : 'login' );
|
1221 |
}
|
1222 |
|
1223 |
$this->loaded_instances[] = $instance;
|
languages/theme-my-login.pot
CHANGED
@@ -2,15 +2,15 @@
|
|
2 |
# This file is distributed under the same license as the Theme My Login package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Theme My Login 6.4.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/theme-my-login\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2018-05-
|
13 |
-
"PO-Revision-Date: 2018-05-
|
14 |
"X-Domain: theme-my-login\n"
|
15 |
|
16 |
#: includes/class-theme-my-login.php:126
|
@@ -42,71 +42,71 @@ msgstr ""
|
|
42 |
msgid "Reset Password"
|
43 |
msgstr ""
|
44 |
|
45 |
-
#: includes/class-theme-my-login.php:
|
46 |
msgid "Your password reset link appears to be invalid. Please request a new link below."
|
47 |
msgstr ""
|
48 |
|
49 |
-
#: includes/class-theme-my-login.php:
|
50 |
msgid "Your password reset link has expired. Please request a new link below."
|
51 |
msgstr ""
|
52 |
|
53 |
-
#: includes/class-theme-my-login.php:
|
54 |
msgid "The passwords do not match."
|
55 |
msgstr ""
|
56 |
|
57 |
#: includes/class-theme-my-login.php:580
|
58 |
-
msgid "
|
59 |
-
msgstr ""
|
60 |
-
|
61 |
-
#: includes/class-theme-my-login.php:582
|
62 |
-
msgid "User registration is currently not allowed."
|
63 |
msgstr ""
|
64 |
|
65 |
#: includes/class-theme-my-login.php:584
|
66 |
-
msgid "
|
67 |
msgstr ""
|
68 |
|
69 |
#: includes/class-theme-my-login.php:586
|
70 |
-
msgid "
|
71 |
msgstr ""
|
72 |
|
73 |
#: includes/class-theme-my-login.php:588
|
74 |
-
msgid "
|
75 |
msgstr ""
|
76 |
|
77 |
#: includes/class-theme-my-login.php:590
|
78 |
-
msgid "
|
79 |
msgstr ""
|
80 |
|
81 |
#: includes/class-theme-my-login.php:592
|
82 |
-
msgid "
|
83 |
msgstr ""
|
84 |
|
85 |
#: includes/class-theme-my-login.php:594
|
86 |
-
msgid "Please
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: includes/class-theme-my-login.php:
|
|
|
|
|
|
|
|
|
90 |
msgid "<strong>ERROR</strong>: Invalid email address."
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: includes/class-theme-my-login.php:
|
94 |
msgid "<strong>ERROR</strong>: Enter a username or e-mail address."
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: includes/class-theme-my-login.php:
|
98 |
msgid "<strong>ERROR</strong>: There is no user registered with that email address."
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: includes/class-theme-my-login.php:
|
102 |
msgid "<strong>ERROR</strong>: Invalid username or e-mail."
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: includes/class-theme-my-login.php:
|
106 |
msgid "Someone requested that the password be reset for the following account:"
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: includes/class-theme-my-login.php:
|
110 |
#: modules/user-moderation/admin/user-moderation-admin.php:382
|
111 |
#: modules/user-moderation/user-moderation.php:461
|
112 |
#: modules/custom-email/custom-email.php:843
|
@@ -114,26 +114,26 @@ msgstr ""
|
|
114 |
msgid "Username: %s"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: includes/class-theme-my-login.php:
|
118 |
msgid "If this was a mistake, just ignore this email and nothing will happen."
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: includes/class-theme-my-login.php:
|
122 |
msgid "To reset your password, visit the following address:"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: includes/class-theme-my-login.php:
|
126 |
msgid "[%s] Password Reset"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: includes/class-theme-my-login.php:
|
130 |
#: modules/user-moderation/admin/user-moderation-admin.php:252
|
131 |
#: modules/user-moderation/admin/user-moderation-admin.php:394
|
132 |
#: modules/user-moderation/admin/user-moderation-admin.php:436
|
133 |
msgid "The e-mail could not be sent."
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: includes/class-theme-my-login.php:
|
137 |
#: modules/user-moderation/admin/user-moderation-admin.php:252
|
138 |
#: modules/user-moderation/admin/user-moderation-admin.php:394
|
139 |
#: modules/user-moderation/admin/user-moderation-admin.php:436
|
@@ -347,6 +347,7 @@ msgid "Dashboard"
|
|
347 |
msgstr ""
|
348 |
|
349 |
#: includes/class-theme-my-login-template.php:357
|
|
|
350 |
#: modules/custom-user-links/custom-user-links.php:65
|
351 |
msgid "Profile"
|
352 |
msgstr ""
|
@@ -363,60 +364,64 @@ msgstr ""
|
|
363 |
msgid "Enter your new password below."
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: admin/class-theme-my-login-admin.php:
|
367 |
-
#: admin/class-theme-my-login-admin.php:
|
368 |
msgid "Theme My Login Settings"
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: admin/class-theme-my-login-admin.php:
|
372 |
msgid "TML"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: admin/class-theme-my-login-admin.php:
|
376 |
-
#: admin/class-theme-my-login-admin.php:
|
377 |
-
#: admin/class-theme-my-login-admin.php:
|
378 |
msgid "General"
|
379 |
msgstr ""
|
380 |
|
381 |
-
#: admin/class-theme-my-login-admin.php:
|
382 |
-
#: admin/class-theme-my-login-admin.php:
|
383 |
msgid "Modules"
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: admin/class-theme-my-login-admin.php:
|
387 |
msgid "Stylesheet"
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: admin/class-theme-my-login-admin.php:
|
391 |
msgid "Login Type"
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: admin/class-theme-my-login-admin.php:
|
|
|
|
|
|
|
|
|
395 |
msgid "Enable \"theme-my-login.css\""
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: admin/class-theme-my-login-admin.php:
|
399 |
msgid "In order to keep changes between upgrades, you can store your customized \"theme-my-login.css\" in your current theme directory."
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: admin/class-theme-my-login-admin.php:
|
403 |
#: templates/login-form.php:18
|
404 |
msgid "Username or E-mail"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: admin/class-theme-my-login-admin.php:
|
408 |
msgid "Username only"
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: admin/class-theme-my-login-admin.php:
|
412 |
msgid "E-mail only"
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: admin/class-theme-my-login-admin.php:
|
416 |
msgid "Allow users to login using their username and/or e-mail address."
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: admin/class-theme-my-login-admin.php:
|
420 |
msgid "Enable %s"
|
421 |
msgstr ""
|
422 |
|
@@ -714,11 +719,11 @@ msgstr ""
|
|
714 |
msgid "Restrict Admin Access"
|
715 |
msgstr ""
|
716 |
|
717 |
-
#: modules/themed-profiles/themed-profiles.php:
|
718 |
msgid "You do not have permission to edit this user."
|
719 |
msgstr ""
|
720 |
|
721 |
-
#: modules/themed-profiles/themed-profiles.php:
|
722 |
msgid "Profile updated."
|
723 |
msgstr ""
|
724 |
|
2 |
# This file is distributed under the same license as the Theme My Login package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Theme My Login 6.4.13\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/theme-my-login\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2018-05-28T12:28:38-04:00\n"
|
13 |
+
"PO-Revision-Date: 2018-05-28T12:28:38-04:00\n"
|
14 |
"X-Domain: theme-my-login\n"
|
15 |
|
16 |
#: includes/class-theme-my-login.php:126
|
42 |
msgid "Reset Password"
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: includes/class-theme-my-login.php:389
|
46 |
msgid "Your password reset link appears to be invalid. Please request a new link below."
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: includes/class-theme-my-login.php:391
|
50 |
msgid "Your password reset link has expired. Please request a new link below."
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: includes/class-theme-my-login.php:429
|
54 |
msgid "The passwords do not match."
|
55 |
msgstr ""
|
56 |
|
57 |
#: includes/class-theme-my-login.php:580
|
58 |
+
msgid "Your session has expired. Please log in to continue where you left off."
|
|
|
|
|
|
|
|
|
59 |
msgstr ""
|
60 |
|
61 |
#: includes/class-theme-my-login.php:584
|
62 |
+
msgid "You are now logged out."
|
63 |
msgstr ""
|
64 |
|
65 |
#: includes/class-theme-my-login.php:586
|
66 |
+
msgid "User registration is currently not allowed."
|
67 |
msgstr ""
|
68 |
|
69 |
#: includes/class-theme-my-login.php:588
|
70 |
+
msgid "Check your email for the confirmation link."
|
71 |
msgstr ""
|
72 |
|
73 |
#: includes/class-theme-my-login.php:590
|
74 |
+
msgid "Check your email for your new password."
|
75 |
msgstr ""
|
76 |
|
77 |
#: includes/class-theme-my-login.php:592
|
78 |
+
msgid "Your password has been reset."
|
79 |
msgstr ""
|
80 |
|
81 |
#: includes/class-theme-my-login.php:594
|
82 |
+
msgid "Registration complete. Please check your email."
|
83 |
msgstr ""
|
84 |
|
85 |
+
#: includes/class-theme-my-login.php:596
|
86 |
+
msgid "<strong>You have successfully updated WordPress!</strong> Please log back in to see what’s new."
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: includes/class-theme-my-login.php:943
|
90 |
msgid "<strong>ERROR</strong>: Invalid email address."
|
91 |
msgstr ""
|
92 |
|
93 |
+
#: includes/class-theme-my-login.php:1271
|
94 |
msgid "<strong>ERROR</strong>: Enter a username or e-mail address."
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: includes/class-theme-my-login.php:1275
|
98 |
msgid "<strong>ERROR</strong>: There is no user registered with that email address."
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: includes/class-theme-my-login.php:1287
|
102 |
msgid "<strong>ERROR</strong>: Invalid username or e-mail."
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: includes/class-theme-my-login.php:1300
|
106 |
msgid "Someone requested that the password be reset for the following account:"
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: includes/class-theme-my-login.php:1302
|
110 |
#: modules/user-moderation/admin/user-moderation-admin.php:382
|
111 |
#: modules/user-moderation/user-moderation.php:461
|
112 |
#: modules/custom-email/custom-email.php:843
|
114 |
msgid "Username: %s"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: includes/class-theme-my-login.php:1303
|
118 |
msgid "If this was a mistake, just ignore this email and nothing will happen."
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: includes/class-theme-my-login.php:1304
|
122 |
msgid "To reset your password, visit the following address:"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: includes/class-theme-my-login.php:1315
|
126 |
msgid "[%s] Password Reset"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: includes/class-theme-my-login.php:1321
|
130 |
#: modules/user-moderation/admin/user-moderation-admin.php:252
|
131 |
#: modules/user-moderation/admin/user-moderation-admin.php:394
|
132 |
#: modules/user-moderation/admin/user-moderation-admin.php:436
|
133 |
msgid "The e-mail could not be sent."
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: includes/class-theme-my-login.php:1321
|
137 |
#: modules/user-moderation/admin/user-moderation-admin.php:252
|
138 |
#: modules/user-moderation/admin/user-moderation-admin.php:394
|
139 |
#: modules/user-moderation/admin/user-moderation-admin.php:436
|
347 |
msgstr ""
|
348 |
|
349 |
#: includes/class-theme-my-login-template.php:357
|
350 |
+
#: modules/themed-profiles/themed-profiles.php:99
|
351 |
#: modules/custom-user-links/custom-user-links.php:65
|
352 |
msgid "Profile"
|
353 |
msgstr ""
|
364 |
msgid "Enter your new password below."
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: admin/class-theme-my-login-admin.php:71
|
368 |
+
#: admin/class-theme-my-login-admin.php:189
|
369 |
msgid "Theme My Login Settings"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: admin/class-theme-my-login-admin.php:72
|
373 |
msgid "TML"
|
374 |
msgstr ""
|
375 |
|
376 |
+
#: admin/class-theme-my-login-admin.php:80
|
377 |
+
#: admin/class-theme-my-login-admin.php:81
|
378 |
+
#: admin/class-theme-my-login-admin.php:106
|
379 |
msgid "General"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: admin/class-theme-my-login-admin.php:107
|
383 |
+
#: admin/class-theme-my-login-admin.php:112
|
384 |
msgid "Modules"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: admin/class-theme-my-login-admin.php:110
|
388 |
msgid "Stylesheet"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: admin/class-theme-my-login-admin.php:111
|
392 |
msgid "Login Type"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: admin/class-theme-my-login-admin.php:136
|
396 |
+
msgid "Theme My Login Action"
|
397 |
+
msgstr ""
|
398 |
+
|
399 |
+
#: admin/class-theme-my-login-admin.php:217
|
400 |
msgid "Enable \"theme-my-login.css\""
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: admin/class-theme-my-login-admin.php:218
|
404 |
msgid "In order to keep changes between upgrades, you can store your customized \"theme-my-login.css\" in your current theme directory."
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: admin/class-theme-my-login-admin.php:234
|
408 |
#: templates/login-form.php:18
|
409 |
msgid "Username or E-mail"
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: admin/class-theme-my-login-admin.php:237
|
413 |
msgid "Username only"
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: admin/class-theme-my-login-admin.php:240
|
417 |
msgid "E-mail only"
|
418 |
msgstr ""
|
419 |
|
420 |
+
#: admin/class-theme-my-login-admin.php:244
|
421 |
msgid "Allow users to login using their username and/or e-mail address."
|
422 |
msgstr ""
|
423 |
|
424 |
+
#: admin/class-theme-my-login-admin.php:260
|
425 |
msgid "Enable %s"
|
426 |
msgstr ""
|
427 |
|
719 |
msgid "Restrict Admin Access"
|
720 |
msgstr ""
|
721 |
|
722 |
+
#: modules/themed-profiles/themed-profiles.php:271
|
723 |
msgid "You do not have permission to edit this user."
|
724 |
msgstr ""
|
725 |
|
726 |
+
#: modules/themed-profiles/themed-profiles.php:308
|
727 |
msgid "Profile updated."
|
728 |
msgstr ""
|
729 |
|
modules/themed-profiles/themed-profiles.php
CHANGED
@@ -72,7 +72,8 @@ class Theme_My_Login_Themed_Profiles extends Theme_My_Login_Abstract {
|
|
72 |
* @access protected
|
73 |
*/
|
74 |
protected function load() {
|
75 |
-
|
|
|
76 |
|
77 |
add_action( 'init', array( $this, 'init' ) );
|
78 |
add_action( 'template_redirect', array( $this, 'template_redirect' ) );
|
@@ -86,6 +87,19 @@ class Theme_My_Login_Themed_Profiles extends Theme_My_Login_Abstract {
|
|
86 |
add_filter( 'wp_setup_nav_menu_item', array( $this, 'wp_setup_nav_menu_item' ), 12 );
|
87 |
}
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
/**
|
90 |
* Adds filters to site_url() and admin_url()
|
91 |
*
|
@@ -393,4 +407,3 @@ endif;
|
|
393 |
|
394 |
if ( is_admin() )
|
395 |
include_once( dirname( __FILE__ ) . '/admin/themed-profiles-admin.php' );
|
396 |
-
|
72 |
* @access protected
|
73 |
*/
|
74 |
protected function load() {
|
75 |
+
add_filter( 'tml_default_pages', array( $this, 'tml_default_pages' ) );
|
76 |
+
add_action( 'tml_modules_loaded', array( $this, 'modules_loaded' ) );
|
77 |
|
78 |
add_action( 'init', array( $this, 'init' ) );
|
79 |
add_action( 'template_redirect', array( $this, 'template_redirect' ) );
|
87 |
add_filter( 'wp_setup_nav_menu_item', array( $this, 'wp_setup_nav_menu_item' ), 12 );
|
88 |
}
|
89 |
|
90 |
+
/**
|
91 |
+
* Add the profile page to the default pages.
|
92 |
+
*
|
93 |
+
* @since 6.4.13
|
94 |
+
*
|
95 |
+
* @param array $page The default pages.
|
96 |
+
* @return array The default pages with the profile page added.
|
97 |
+
*/
|
98 |
+
public function tml_default_pages( $pages ) {
|
99 |
+
$pages['profile'] = __( 'Profile', 'theme-my-login' );
|
100 |
+
return $pages;
|
101 |
+
}
|
102 |
+
|
103 |
/**
|
104 |
* Adds filters to site_url() and admin_url()
|
105 |
*
|
407 |
|
408 |
if ( is_admin() )
|
409 |
include_once( dirname( __FILE__ ) . '/admin/themed-profiles-admin.php' );
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: widget, login, registration, theme, custom, log in, register, sidebar, gravatar, redirection, e-mail
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9.6
|
7 |
-
Stable tag: 6.4.
|
8 |
|
9 |
Themes the WordPress login pages according to your theme.
|
10 |
|
@@ -57,6 +57,10 @@ Please visit https://wordpress.org/support/plugin/theme-my-login.
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
|
|
60 |
= 6.4.12 =
|
61 |
* Add support for data requests
|
62 |
* Utilize Bootstrap 3 colors for notices
|
4 |
Tags: widget, login, registration, theme, custom, log in, register, sidebar, gravatar, redirection, e-mail
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9.6
|
7 |
+
Stable tag: 6.4.13
|
8 |
|
9 |
Themes the WordPress login pages according to your theme.
|
10 |
|
57 |
|
58 |
== Changelog ==
|
59 |
|
60 |
+
= 6.4.13 =
|
61 |
+
* Implement a TML action selector for pages
|
62 |
+
* Fix error about cookies not being enabled when they are
|
63 |
+
|
64 |
= 6.4.12 =
|
65 |
* Add support for data requests
|
66 |
* Utilize Bootstrap 3 colors for notices
|
templates/login-form.php
CHANGED
@@ -39,7 +39,6 @@ Theme My Login will always look in your theme's directory first, before using th
|
|
39 |
<input type="hidden" name="redirect_to" value="<?php $template->the_redirect_url( 'login' ); ?>" />
|
40 |
<input type="hidden" name="instance" value="<?php $template->the_instance(); ?>" />
|
41 |
<input type="hidden" name="action" value="login" />
|
42 |
-
<input type="hidden" name="testcookie" value="1" />
|
43 |
</p>
|
44 |
</div>
|
45 |
</form>
|
39 |
<input type="hidden" name="redirect_to" value="<?php $template->the_redirect_url( 'login' ); ?>" />
|
40 |
<input type="hidden" name="instance" value="<?php $template->the_instance(); ?>" />
|
41 |
<input type="hidden" name="action" value="login" />
|
|
|
42 |
</p>
|
43 |
</div>
|
44 |
</form>
|
theme-my-login.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Theme My Login
|
4 |
Plugin URI: http://www.jfarthing.com/extend/wordpress-plugins/theme-my-login/
|
5 |
Description: Themes the WordPress login, registration and forgot password pages according to your theme.
|
6 |
-
Version: 6.4.
|
7 |
Author: Jeff Farthing
|
8 |
Author URI: http://www.jfarthing.com
|
9 |
Text Domain: theme-my-login
|
3 |
Plugin Name: Theme My Login
|
4 |
Plugin URI: http://www.jfarthing.com/extend/wordpress-plugins/theme-my-login/
|
5 |
Description: Themes the WordPress login, registration and forgot password pages according to your theme.
|
6 |
+
Version: 6.4.13
|
7 |
Author: Jeff Farthing
|
8 |
Author URI: http://www.jfarthing.com
|
9 |
Text Domain: theme-my-login
|