Version Description
- Fix fatal error on PHP versions less than 5.5
- Apply
tml_get_action_tile
filter at the object level - Apply
tml_get_action_slug
filter at the object level - Apply
tml_get_action_url
filter at the object level
Download this release
Release Info
Developer | jfarthing84 |
Plugin | Theme My Login |
Version | 7.0.9 |
Comparing to | |
See all releases |
Code changes from version 7.0.8 to 7.0.9
- admin/extensions.php +1 -1
- includes/actions.php +3 -41
- includes/class-theme-my-login-action.php +30 -3
- languages/theme-my-login.pot +4 -4
- readme.txt +8 -2
- theme-my-login.php +2 -2
admin/extensions.php
CHANGED
@@ -172,7 +172,7 @@ function tml_admin_check_extension_licenses() {
|
|
172 |
}
|
173 |
|
174 |
foreach ( tml_get_extensions() as $extension ) {
|
175 |
-
if (
|
176 |
continue;
|
177 |
}
|
178 |
if ( 'valid' != $extension->get_license_status() ) {
|
172 |
}
|
173 |
|
174 |
foreach ( tml_get_extensions() as $extension ) {
|
175 |
+
if ( ! $extension->get_license_key() ) {
|
176 |
continue;
|
177 |
}
|
178 |
if ( 'valid' != $extension->get_license_status() ) {
|
includes/actions.php
CHANGED
@@ -206,22 +206,10 @@ function tml_is_action( $action = '' ) {
|
|
206 |
* @return string The action title.
|
207 |
*/
|
208 |
function tml_get_action_title( $action = '' ) {
|
209 |
-
|
210 |
if ( ! $action = tml_get_action( $action ) ) {
|
211 |
return;
|
212 |
}
|
213 |
-
|
214 |
-
$title = $action->get_title();
|
215 |
-
|
216 |
-
/**
|
217 |
-
* Filter the action title.
|
218 |
-
*
|
219 |
-
* @since 7.0
|
220 |
-
*
|
221 |
-
* @param string $title The action title.
|
222 |
-
* @param string $name The action name.
|
223 |
-
*/
|
224 |
-
return apply_filters( 'tml_get_action_title', $title, $action->get_name() );
|
225 |
}
|
226 |
|
227 |
/**
|
@@ -233,22 +221,10 @@ function tml_get_action_title( $action = '' ) {
|
|
233 |
* @return string The action slug.
|
234 |
*/
|
235 |
function tml_get_action_slug( $action = '' ) {
|
236 |
-
|
237 |
if ( ! $action = tml_get_action( $action ) ) {
|
238 |
return;
|
239 |
}
|
240 |
-
|
241 |
-
$slug = $action->get_slug();
|
242 |
-
|
243 |
-
/**
|
244 |
-
* Filter the action slug.
|
245 |
-
*
|
246 |
-
* @since 7.0
|
247 |
-
*
|
248 |
-
* @param string $slug The action slug.
|
249 |
-
* @param string $name The action name.
|
250 |
-
*/
|
251 |
-
return apply_filters( 'tml_get_action_slug', $slug, $action->get_name() );
|
252 |
}
|
253 |
|
254 |
/**
|
@@ -262,24 +238,10 @@ function tml_get_action_slug( $action = '' ) {
|
|
262 |
* @return string The action URL.
|
263 |
*/
|
264 |
function tml_get_action_url( $action = '', $scheme = 'login', $network = null ) {
|
265 |
-
|
266 |
if ( ! $action = tml_get_action( $action ) ) {
|
267 |
return;
|
268 |
}
|
269 |
-
|
270 |
-
$url = $action->get_url( $scheme, $network );
|
271 |
-
|
272 |
-
/**
|
273 |
-
* Filter the action URL.
|
274 |
-
*
|
275 |
-
* @since 7.0
|
276 |
-
*
|
277 |
-
* @param string $url The action URL.
|
278 |
-
* @param string $name The action name.
|
279 |
-
* @param string $scheme The URL scheme.
|
280 |
-
* @param bool $network Whether to retrieve the URL for the current network or current blog.
|
281 |
-
*/
|
282 |
-
return apply_filters( 'tml_get_action_url', $url, $action->get_name(), $scheme, $network );
|
283 |
}
|
284 |
|
285 |
/**
|
206 |
* @return string The action title.
|
207 |
*/
|
208 |
function tml_get_action_title( $action = '' ) {
|
|
|
209 |
if ( ! $action = tml_get_action( $action ) ) {
|
210 |
return;
|
211 |
}
|
212 |
+
return $action->get_title();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
}
|
214 |
|
215 |
/**
|
221 |
* @return string The action slug.
|
222 |
*/
|
223 |
function tml_get_action_slug( $action = '' ) {
|
|
|
224 |
if ( ! $action = tml_get_action( $action ) ) {
|
225 |
return;
|
226 |
}
|
227 |
+
return $action->get_slug();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
}
|
229 |
|
230 |
/**
|
238 |
* @return string The action URL.
|
239 |
*/
|
240 |
function tml_get_action_url( $action = '', $scheme = 'login', $network = null ) {
|
|
|
241 |
if ( ! $action = tml_get_action( $action ) ) {
|
242 |
return;
|
243 |
}
|
244 |
+
return $action->get_url( $scheme, $network );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
}
|
246 |
|
247 |
/**
|
includes/class-theme-my-login-action.php
CHANGED
@@ -164,7 +164,15 @@ class Theme_My_Login_Action {
|
|
164 |
* @return string The action title.
|
165 |
*/
|
166 |
public function get_title() {
|
167 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
}
|
169 |
|
170 |
/**
|
@@ -230,7 +238,15 @@ class Theme_My_Login_Action {
|
|
230 |
* @return string The action slug.
|
231 |
*/
|
232 |
public function get_slug() {
|
233 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
}
|
235 |
|
236 |
/**
|
@@ -271,6 +287,17 @@ class Theme_My_Login_Action {
|
|
271 |
$url = user_trailingslashit( $url );
|
272 |
$url = add_query_arg( 'action', $this->name, $url );
|
273 |
}
|
274 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
}
|
276 |
}
|
164 |
* @return string The action title.
|
165 |
*/
|
166 |
public function get_title() {
|
167 |
+
/**
|
168 |
+
* Filter the action title.
|
169 |
+
*
|
170 |
+
* @since 7.0
|
171 |
+
*
|
172 |
+
* @param string $title The action title.
|
173 |
+
* @param string $name The action name.
|
174 |
+
*/
|
175 |
+
return apply_filters( 'tml_get_action_title', $this->title, $this->get_name() );
|
176 |
}
|
177 |
|
178 |
/**
|
238 |
* @return string The action slug.
|
239 |
*/
|
240 |
public function get_slug() {
|
241 |
+
/**
|
242 |
+
* Filter the action slug.
|
243 |
+
*
|
244 |
+
* @since 7.0
|
245 |
+
*
|
246 |
+
* @param string $slug The action slug.
|
247 |
+
* @param string $name The action name.
|
248 |
+
*/
|
249 |
+
return apply_filters( 'tml_get_action_slug', $this->slug, $this->get_name() );
|
250 |
}
|
251 |
|
252 |
/**
|
287 |
$url = user_trailingslashit( $url );
|
288 |
$url = add_query_arg( 'action', $this->name, $url );
|
289 |
}
|
290 |
+
|
291 |
+
/**
|
292 |
+
* Filter the action URL.
|
293 |
+
*
|
294 |
+
* @since 7.0
|
295 |
+
*
|
296 |
+
* @param string $url The action URL.
|
297 |
+
* @param string $name The action name.
|
298 |
+
* @param string $scheme The URL scheme.
|
299 |
+
* @param bool $network Whether to retrieve the URL for the current network or current blog.
|
300 |
+
*/
|
301 |
+
return apply_filters( 'tml_get_action_url', $url, $this->get_name(), $scheme, $network );
|
302 |
}
|
303 |
}
|
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 7.0.
|
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-07-
|
13 |
-
"PO-Revision-Date: 2018-07-
|
14 |
"X-Domain: theme-my-login\n"
|
15 |
|
16 |
#: includes/functions.php:406
|
@@ -48,7 +48,7 @@ msgstr ""
|
|
48 |
msgid "Your Data Request"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: includes/actions.php:
|
52 |
msgid "Registration complete. You may now log in."
|
53 |
msgstr ""
|
54 |
|
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 7.0.9\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-07-12T15:31:08-04:00\n"
|
13 |
+
"PO-Revision-Date: 2018-07-12T15:31:08-04:00\n"
|
14 |
"X-Domain: theme-my-login\n"
|
15 |
|
16 |
#: includes/functions.php:406
|
48 |
msgid "Your Data Request"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: includes/actions.php:426
|
52 |
msgid "Registration complete. You may now log in."
|
53 |
msgstr ""
|
54 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: thememylogin, jfarthing84
|
|
3 |
Tags: login, register, password, branding, customize, widget, wp-login, wp-login.php
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 4.9.7
|
6 |
-
Stable tag: 7.0.
|
7 |
|
8 |
The ultimate login branding solution! Theme My Login offers matchless customization of your WordPress user experience!
|
9 |
|
@@ -46,7 +46,7 @@ Boost your user experience even more with add-on plugins from our [extensions ca
|
|
46 |
|
47 |
= Where can I find documentation? =
|
48 |
|
49 |
-
Documentation can be found on our [documentation site](
|
50 |
|
51 |
= Where can I find support? =
|
52 |
|
@@ -59,6 +59,12 @@ Report bugs, suggest ideas and participate in development at [GitHub](https://gi
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
= 7.0.8 =
|
63 |
* Fix slow-loading extensions page
|
64 |
* Add dismissible notice of latest available extension
|
3 |
Tags: login, register, password, branding, customize, widget, wp-login, wp-login.php
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 4.9.7
|
6 |
+
Stable tag: 7.0.9
|
7 |
|
8 |
The ultimate login branding solution! Theme My Login offers matchless customization of your WordPress user experience!
|
9 |
|
46 |
|
47 |
= Where can I find documentation? =
|
48 |
|
49 |
+
Documentation can be found on our [documentation site](https://docs.thememylogin.com).
|
50 |
|
51 |
= Where can I find support? =
|
52 |
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 7.0.9 =
|
63 |
+
* Fix fatal error on PHP versions less than 5.5
|
64 |
+
* Apply `tml_get_action_tile` filter at the object level
|
65 |
+
* Apply `tml_get_action_slug` filter at the object level
|
66 |
+
* Apply `tml_get_action_url` filter at the object level
|
67 |
+
|
68 |
= 7.0.8 =
|
69 |
* Fix slow-loading extensions page
|
70 |
* Add dismissible notice of latest available extension
|
theme-my-login.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
Plugin Name: Theme My Login
|
11 |
Plugin URI: https://thememylogin.com
|
12 |
Description: Creates an alternate login, registration and password recovery experience within your theme.
|
13 |
-
Version: 7.0.
|
14 |
Author: Theme My Login
|
15 |
Author URI: https://thememylogin.com
|
16 |
License: GPLv2
|
@@ -24,7 +24,7 @@ Network: true
|
|
24 |
*
|
25 |
* @since 7.0
|
26 |
*/
|
27 |
-
define( 'THEME_MY_LOGIN_VERSION', '7.0.
|
28 |
|
29 |
/**
|
30 |
* Stores the path to TML.
|
10 |
Plugin Name: Theme My Login
|
11 |
Plugin URI: https://thememylogin.com
|
12 |
Description: Creates an alternate login, registration and password recovery experience within your theme.
|
13 |
+
Version: 7.0.9
|
14 |
Author: Theme My Login
|
15 |
Author URI: https://thememylogin.com
|
16 |
License: GPLv2
|
24 |
*
|
25 |
* @since 7.0
|
26 |
*/
|
27 |
+
define( 'THEME_MY_LOGIN_VERSION', '7.0.9' );
|
28 |
|
29 |
/**
|
30 |
* Stores the path to TML.
|