Temporary Login Without Password - Version 1.6.12

Version Description

  • Update: Confirm before delete temporary user

=

Download this release

Release Info

Developer storeapps
Plugin Icon 128x128 Temporary Login Without Password
Version 1.6.12
Comparing to
See all releases

Code changes from version 1.6.11 to 1.6.12

admin/class-wp-temporary-login-without-password-admin.php CHANGED
@@ -674,4 +674,23 @@ class Wp_Temporary_Login_Without_Password_Admin {
674
 
675
  }
676
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
677
  }
674
 
675
  }
676
 
677
+ /**
678
+ * Update plugin notice
679
+ *
680
+ * @param $data
681
+ * @param $response
682
+ *
683
+ * @since 1.6.12
684
+ */
685
+ public function in_plugin_update_message( $data, $response ) {
686
+
687
+ if ( isset( $data['upgrade_notice'] ) ) {
688
+ printf(
689
+ '<div class="update-message">%s</div>',
690
+ wpautop( $data['upgrade_notice'] )
691
+ );
692
+ }
693
+ }
694
+
695
+
696
  }
admin/js/wp-temporary-login-without-password-admin.js CHANGED
@@ -100,6 +100,12 @@
100
  /* Add tailwind classes to language dropdown */
101
  $('.wtlwp-language-dropdown select').addClass('form-select font-normal text-gray-600 h-8 shadow-sm');
102
 
 
 
 
 
 
 
103
  }
104
  );
105
 
100
  /* Add tailwind classes to language dropdown */
101
  $('.wtlwp-language-dropdown select').addClass('form-select font-normal text-gray-600 h-8 shadow-sm');
102
 
103
+ // Confirm before delete
104
+ $('.tlwp-delete').click(function () {
105
+ // escape here if the confirm is false;
106
+ return confirm('Do you want to delete temporary user?');
107
+ });
108
+
109
  }
110
  );
111
 
includes/class-wp-temporary-login-without-password-layout.php CHANGED
@@ -178,7 +178,7 @@ class Wp_Temporary_Login_Without_Password_Layout {
178
  $action_row .= "<span class='enable'><a title='" . __( 'Reactivate for one day', 'temporary-login-without-password' ) . "' href='{$enable_login_url}'><span class='dashicons dashicons-lock'></a></span></span>";
179
  }
180
 
181
- $action_row .= "<span class='delete'><a title='" . __( 'Delete', 'temporary-login-without-password' ) . "' href='{$delete_login_url}'><span class='dashicons dashicons-no'></span></a></span>";
182
  $action_row .= "<span class='edit'><a title='" . __( 'Edit', 'temporary-login-without-password' ) . "' href='{$update_login_url}'><span class='dashicons dashicons-edit'></span></a></span>";
183
 
184
  // Shows these link only if temporary login active.
178
  $action_row .= "<span class='enable'><a title='" . __( 'Reactivate for one day', 'temporary-login-without-password' ) . "' href='{$enable_login_url}'><span class='dashicons dashicons-lock'></a></span></span>";
179
  }
180
 
181
+ $action_row .= "<span class='delete tlwp-delete'><a title='" . __( 'Delete', 'temporary-login-without-password' ) . "' href='{$delete_login_url}'><span class='dashicons dashicons-no'></span></a></span>";
182
  $action_row .= "<span class='edit'><a title='" . __( 'Edit', 'temporary-login-without-password' ) . "' href='{$update_login_url}'><span class='dashicons dashicons-edit'></span></a></span>";
183
 
184
  // Shows these link only if temporary login active.
includes/class-wp-temporary-login-without-password.php CHANGED
@@ -119,6 +119,8 @@ class Wp_Temporary_Login_Without_Password {
119
  $this->loader->add_filter( 'plugin_action_links_' . WTLWP_PLUGIN_BASE_NAME, $plugin_admin, 'plugin_add_settings_link', 10, 4 );
120
 
121
  $this->loader->add_action( 'admin_print_scripts', $plugin_admin, 'remove_admin_notices' );
 
 
122
  }
123
 
124
  /**
119
  $this->loader->add_filter( 'plugin_action_links_' . WTLWP_PLUGIN_BASE_NAME, $plugin_admin, 'plugin_add_settings_link', 10, 4 );
120
 
121
  $this->loader->add_action( 'admin_print_scripts', $plugin_admin, 'remove_admin_notices' );
122
+
123
+ $this->loader->add_action( 'in_plugin_update_message-temporary-login-wihtout-password/temporary-login-wihtout-password.php', $plugin_admin, 'in_plugin_update_message', 10, 2 );
124
  }
125
 
126
  /**
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: storeapps, icegram, niravmehta, malayladu, asmipatel
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BMFRMVXQ87JWA&source=url
4
  Tags: temporary access, developer access, passwordless login, magic pin, secure login
5
  Requires at least: 3.0.1
6
- Tested up to: 5.7
7
- Stable tag: 1.6.11
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -157,8 +157,17 @@ Yes, you can use a fake email address or your email address to generate temporar
157
  2. List of all (Active/Expired) Temporary Login.
158
  3. Temporary Login settings panel.
159
 
 
 
 
 
 
160
  == Changelog ==
161
 
 
 
 
 
162
  **1.6.11 [2020-04-08]**
163
 
164
  * Update: PHP 8 compatibility check
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BMFRMVXQ87JWA&source=url
4
  Tags: temporary access, developer access, passwordless login, magic pin, secure login
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.7.1
7
+ Stable tag: 1.6.12
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
157
  2. List of all (Active/Expired) Temporary Login.
158
  3. Temporary Login settings panel.
159
 
160
+ == Upgrade Notice ==
161
+
162
+ = 1.6.12 =
163
+ * Update: Confirm before delete temporary user
164
+
165
  == Changelog ==
166
 
167
+ **1.6.12 [2020-05-10]**
168
+
169
+ * Update: Confirm before delete temporary user
170
+
171
  **1.6.11 [2020-04-08]**
172
 
173
  * Update: PHP 8 compatibility check
temporary-login-without-password.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Temporary Login Without Password
4
  * Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
5
  * 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.
6
- * Version: 1.6.11
7
  * Author: StoreApps
8
  * Author URI: https://storeapps.org
9
  * Requires at least: 3.0.1
@@ -25,7 +25,7 @@ if ( ! defined( 'WPINC' ) ) {
25
  /**
26
  * Define constants
27
  */
28
- define( 'WTLWP_PLUGIN_VERSION', '1.6.11' );
29
  define( 'WTLWP_FEEDBACK_VERSION', '1.2.4' );
30
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
31
  define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
3
  * Plugin Name: Temporary Login Without Password
4
  * Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
5
  * 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.
6
+ * Version: 1.6.12
7
  * Author: StoreApps
8
  * Author URI: https://storeapps.org
9
  * Requires at least: 3.0.1
25
  /**
26
  * Define constants
27
  */
28
+ define( 'WTLWP_PLUGIN_VERSION', '1.6.12' );
29
  define( 'WTLWP_FEEDBACK_VERSION', '1.2.4' );
30
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
31
  define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );