Version Description
- Bug Fixed: Uncaught Error: Call to undefined function wc_enqueue_js().
Download this release
Release Info
Developer | storeapps |
Plugin | Temporary Login Without Password |
Version | 1.4.2 |
Comparing to | |
See all releases |
Code changes from version 1.4.1 to 1.4.2
admin/class-wp-temporary-login-without-password-admin.php
CHANGED
@@ -27,6 +27,12 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
27 |
wp_enqueue_script( 'jquery' );
|
28 |
wp_enqueue_script( 'jquery-ui-core' );
|
29 |
wp_enqueue_script( 'jquery-ui-datepicker' );
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
}
|
32 |
|
@@ -359,12 +365,6 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
359 |
if ( !get_option( 'tlwp_admin_footer_text_rated' ) ) {
|
360 |
/* translators: %s: five stars */
|
361 |
$footer_text = sprintf( __( 'If you like <strong>Temporary Login Without Password</strong> please leave us a %s rating. A huge thanks in advance!', 'wp-temporary-login-without-password' ), '<a href="https://wordpress.org/support/plugin/temporary-login-without-password/reviews?rate=5#new-post" target="_blank" class="tlwp-rating-link" data-rated="' . esc_attr__( 'Thank You :)', 'wp-temporary-login-without-password' ) . '">★★★★★</a>' );
|
362 |
-
wc_enqueue_js( "
|
363 |
-
jQuery( 'a.tlwp-rating-link' ).click( function() {
|
364 |
-
jQuery.post( '" . admin_url( 'admin-ajax.php', 'relative' ) . "', { action: 'tlwp_rated' } );
|
365 |
-
jQuery( this ).parent().text( jQuery( this ).data( 'rated' ) );
|
366 |
-
});
|
367 |
-
" );
|
368 |
} else {
|
369 |
$footer_text = sprintf(__( 'Thank you for using %s.', 'wp-temporary-login-without-password' ), '<a href="https://wordpress.org/plugins/temporary-login-without-password/" target="_blank">Temporary Login Without Password</a>');
|
370 |
}
|
27 |
wp_enqueue_script( 'jquery' );
|
28 |
wp_enqueue_script( 'jquery-ui-core' );
|
29 |
wp_enqueue_script( 'jquery-ui-datepicker' );
|
30 |
+
|
31 |
+
$data = array(
|
32 |
+
'admin_ajax_url' => admin_url( 'admin-ajax.php', 'relative' )
|
33 |
+
);
|
34 |
+
|
35 |
+
wp_localize_script($this->plugin_name, 'data', $data);
|
36 |
|
37 |
}
|
38 |
|
365 |
if ( !get_option( 'tlwp_admin_footer_text_rated' ) ) {
|
366 |
/* translators: %s: five stars */
|
367 |
$footer_text = sprintf( __( 'If you like <strong>Temporary Login Without Password</strong> please leave us a %s rating. A huge thanks in advance!', 'wp-temporary-login-without-password' ), '<a href="https://wordpress.org/support/plugin/temporary-login-without-password/reviews?rate=5#new-post" target="_blank" class="tlwp-rating-link" data-rated="' . esc_attr__( 'Thank You :)', 'wp-temporary-login-without-password' ) . '">★★★★★</a>' );
|
|
|
|
|
|
|
|
|
|
|
|
|
368 |
} else {
|
369 |
$footer_text = sprintf(__( 'Thank you for using %s.', 'wp-temporary-login-without-password' ), '<a href="https://wordpress.org/plugins/temporary-login-without-password/" target="_blank">Temporary Login Without Password</a>');
|
370 |
}
|
admin/js/wp-temporary-login-without-password-admin.js
CHANGED
@@ -1,58 +1,60 @@
|
|
1 |
-
(function ($) {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
|
1 |
+
( function ( $ ) {
|
2 |
+
'use strict';
|
3 |
+
|
4 |
+
jQuery( document ).ready( function () {
|
5 |
+
|
6 |
+
// jQuery('#new-wtlwp-form').hide();
|
7 |
+
jQuery( '#add-new-wtlwp-form-button' ).click( function () {
|
8 |
+
jQuery( '#new-wtlwp-form' ).show();
|
9 |
+
} );
|
10 |
+
|
11 |
+
jQuery( '#cancel-new-login-form' ).click( function () {
|
12 |
+
jQuery( '#new-wtlwp-form' ).hide();
|
13 |
+
} );
|
14 |
+
|
15 |
+
if ( jQuery( '.wtlwp-click-to-copy-btn' ).get( 0 ) ) {
|
16 |
+
|
17 |
+
var clipboard = new Clipboard( '.wtlwp-click-to-copy-btn' );
|
18 |
+
|
19 |
+
clipboard.on( 'success', function ( e ) {
|
20 |
+
var elem = e.trigger;
|
21 |
+
var className = elem.getAttribute( 'class' );
|
22 |
+
jQuery( '#copied-text-message-' + className ).text( 'Copied' ).fadeIn();
|
23 |
+
jQuery( '#copied-text-message-' + className ).fadeOut( 'slow' );
|
24 |
+
} );
|
25 |
+
}
|
26 |
+
|
27 |
+
if ( jQuery( '.wtlwp-copy-to-clipboard' ).get( 0 ) ) {
|
28 |
+
var clipboard_link = new Clipboard( '.wtlwp-copy-to-clipboard' );
|
29 |
+
|
30 |
+
clipboard_link.on( 'success', function ( e ) {
|
31 |
+
var elem = e.trigger;
|
32 |
+
var id = elem.getAttribute( 'id' );
|
33 |
+
jQuery( '#copied-' + id ).text( 'Copied' ).fadeIn();
|
34 |
+
jQuery( '#copied-' + id ).fadeOut( 'slow' );
|
35 |
+
} );
|
36 |
+
}
|
37 |
+
|
38 |
+
jQuery( '#user-expiry-time' ).change( function () {
|
39 |
+
|
40 |
+
var value = jQuery( this ).val();
|
41 |
+
if ( value === 'custom_date' ) {
|
42 |
+
var tomorrowDate = new Date( new Date().getTime() + 24 * 60 * 60 * 1000 );
|
43 |
+
jQuery( '.example-datepicker' ).datepicker( {
|
44 |
+
dateFormat: 'yy-mm-dd',
|
45 |
+
minDate: tomorrowDate
|
46 |
+
} );
|
47 |
+
jQuery( '#custom-date-picker' ).show();
|
48 |
+
} else {
|
49 |
+
jQuery( '#custom-date-picker' ).hide();
|
50 |
+
}
|
51 |
+
|
52 |
+
} );
|
53 |
+
|
54 |
+
jQuery( 'a.tlwp-rating-link' ).click( function ( ) {
|
55 |
+
jQuery.post( data.admin_ajax_url, { action: 'tlwp_rated' } );
|
56 |
+
jQuery( this ).parent( ).text( jQuery( this ).data( 'rated' ) );
|
57 |
+
} );
|
58 |
+
|
59 |
+
} );
|
60 |
+
} )( jQuery );
|
includes/class-wp-temporary-login-without-password.php
CHANGED
@@ -9,7 +9,7 @@ class Wp_Temporary_Login_Without_Password {
|
|
9 |
public function __construct() {
|
10 |
|
11 |
$this->plugin_name = 'wp-temporary-login-without-password';
|
12 |
-
$this->version = '1.4.
|
13 |
|
14 |
$this->load_dependencies();
|
15 |
$this->set_locale();
|
9 |
public function __construct() {
|
10 |
|
11 |
$this->plugin_name = 'wp-temporary-login-without-password';
|
12 |
+
$this->version = '1.4.2';
|
13 |
|
14 |
$this->load_dependencies();
|
15 |
$this->set_locale();
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: admin login, custom login, customer access, customer login, secure login, access, admin, log in, login, login security, protection, user login, user login, wordpress admin login, wordpress login, wp-admin, wp-login, expiration, login, Login Without Password, temporary login, user, WordPress Admin, wp-admin, developer account, developer login, developer account, passwordless login, password less login
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 1.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -40,6 +40,10 @@ If you like Temporary Login Without Password, please leave a five star review on
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
|
|
43 |
= 1.4.1 =
|
44 |
|
45 |
- Added: Now, create a temporary login with custom expiry date.
|
4 |
Tags: admin login, custom login, customer access, customer login, secure login, access, admin, log in, login, login security, protection, user login, user login, wordpress admin login, wordpress login, wp-admin, wp-login, expiration, login, Login Without Password, temporary login, user, WordPress Admin, wp-admin, developer account, developer login, developer account, passwordless login, password less login
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 1.4.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
40 |
|
41 |
== Changelog ==
|
42 |
|
43 |
+
= 1.4.2 =
|
44 |
+
|
45 |
+
- Bug Fixed: Uncaught Error: Call to undefined function wc_enqueue_js().
|
46 |
+
|
47 |
= 1.4.1 =
|
48 |
|
49 |
- Added: Now, create a temporary login with custom expiry date.
|
temporary-login-without-password.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Temporary Login Without Password
|
5 |
* Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
|
6 |
* Description: Create a temporary login link with any role using which one can access to your sytem without username and password for limited period of time.
|
7 |
-
* Version: 1.4.
|
8 |
* Author: StoreApps
|
9 |
* Author URI: http://storeapps.org
|
10 |
* Requires at least: 3.3
|
4 |
* Plugin Name: Temporary Login Without Password
|
5 |
* Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
|
6 |
* Description: Create a temporary login link with any role using which one can access to your sytem without username and password for limited period of time.
|
7 |
+
* Version: 1.4.2
|
8 |
* Author: StoreApps
|
9 |
* Author URI: http://storeapps.org
|
10 |
* Requires at least: 3.3
|