Version Description
- Update: WordPress 6.0 compatibility check
- Fix: Prevent extra css from loading on non plugin page
=
Download this release
Release Info
Developer | storeapps |
Plugin | Temporary Login Without Password |
Version | 1.7.3 |
Comparing to | |
See all releases |
Code changes from version 1.7.2 to 1.7.3
- includes/feedback.php +23 -1
- includes/feedback/class-ig-feedback.php +19 -14
- readme.txt +10 -4
- temporary-login-without-password.php +3 -3
includes/feedback.php
CHANGED
@@ -125,4 +125,26 @@ if ( ! function_exists('tlwp_can_load_sweetalert_js') ) {
|
|
125 |
}
|
126 |
}
|
127 |
|
128 |
-
add_filter( 'tlwp_can_load_sweetalert_js', 'tlwp_can_load_sweetalert_js', 10, 1 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
}
|
126 |
}
|
127 |
|
128 |
+
add_filter( 'tlwp_can_load_sweetalert_js', 'tlwp_can_load_sweetalert_js', 10, 1 );
|
129 |
+
|
130 |
+
if ( ! function_exists('tlwp_can_load_sweetalert_css') ) {
|
131 |
+
/**
|
132 |
+
* Can load sweetalert css
|
133 |
+
*
|
134 |
+
* @param bool $load
|
135 |
+
*
|
136 |
+
* @return bool
|
137 |
+
*
|
138 |
+
* @since 1.7.3
|
139 |
+
*/
|
140 |
+
function tlwp_can_load_sweetalert_css( $load = false ) {
|
141 |
+
|
142 |
+
if ( Wp_Temporary_Login_Without_Password_Common::is_tlwp_admin_page() ) {
|
143 |
+
return true;
|
144 |
+
}
|
145 |
+
|
146 |
+
return $load;
|
147 |
+
}
|
148 |
+
}
|
149 |
+
|
150 |
+
add_filter( 'tlwp_can_load_sweetalert_css', 'tlwp_can_load_sweetalert_css', 10, 1 );
|
includes/feedback/class-ig-feedback.php
CHANGED
@@ -95,7 +95,6 @@ if ( ! class_exists( 'IG_Feedback_V_1_2_4' ) ) {
|
|
95 |
* @since 1.0.0
|
96 |
*/
|
97 |
public function __construct( $name = '', $plugin = '', $plugin_abbr = 'ig_fb', $event_prefix = 'igfb.', $is_dev_mode = false ) {
|
98 |
-
|
99 |
$this->name = $name;
|
100 |
$this->plugin = $plugin;
|
101 |
$this->plugin_abbr = $plugin_abbr;
|
@@ -366,22 +365,28 @@ if ( ! class_exists( 'IG_Feedback_V_1_2_4' ) ) {
|
|
366 |
* @since 1.0.1
|
367 |
*/
|
368 |
public function enqueue_styles() {
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
|
381 |
-
wp_register_style( "ig-feedback_{$this->version}", plugin_dir_url( __FILE__ ) . 'assets/css/feedback.min.css', array(), $this->version );
|
382 |
-
wp_enqueue_style( "ig-feedback_{$this->version}" );
|
383 |
}
|
384 |
|
|
|
385 |
/**
|
386 |
* Prepare Widget Params
|
387 |
*
|
95 |
* @since 1.0.0
|
96 |
*/
|
97 |
public function __construct( $name = '', $plugin = '', $plugin_abbr = 'ig_fb', $event_prefix = 'igfb.', $is_dev_mode = false ) {
|
|
|
98 |
$this->name = $name;
|
99 |
$this->plugin = $plugin;
|
100 |
$this->plugin_abbr = $plugin_abbr;
|
365 |
* @since 1.0.1
|
366 |
*/
|
367 |
public function enqueue_styles() {
|
368 |
+
$can_load = apply_filters( $this->plugin_abbr . '_can_load_sweetalert_css', false );
|
369 |
+
|
370 |
+
if( $can_load ){
|
371 |
+
wp_register_style( "sweetalert_{$this->version}", plugin_dir_url( __FILE__ ) . 'assets/css/sweetalert2.min.css', array(), $this->version );
|
372 |
+
wp_enqueue_style( "sweetalert_{$this->version}" );
|
373 |
+
|
374 |
+
wp_register_style( "animate_{$this->version}", plugin_dir_url( __FILE__ ) . 'assets/css/animate.min.css', array(), $this->version );
|
375 |
+
wp_enqueue_style( "animate_{$this->version}" );
|
376 |
+
|
377 |
+
wp_register_style( "ig-feedback-star-rating_{$this->version}", plugin_dir_url( __FILE__ ) . 'assets/css/star-rating.min.css', array(), $this->version );
|
378 |
+
wp_enqueue_style( "ig-feedback-star-rating_{$this->version}" );
|
379 |
+
|
380 |
+
wp_register_style( "ig-feedback-emoji_{$this->version}", plugin_dir_url( __FILE__ ) . 'assets/css/emoji.min.css', array(), $this->version );
|
381 |
+
wp_enqueue_style( "ig-feedback-emoji_{$this->version}" );
|
382 |
+
|
383 |
+
wp_register_style( "ig-feedback_{$this->version}", plugin_dir_url( __FILE__ ) . 'assets/css/feedback.min.css', array(), $this->version );
|
384 |
+
wp_enqueue_style( "ig-feedback_{$this->version}" );
|
385 |
+
}
|
386 |
|
|
|
|
|
387 |
}
|
388 |
|
389 |
+
|
390 |
/**
|
391 |
* Prepare Widget Params
|
392 |
*
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: temporary access, developer access, passwordless login, magic pin, secure login
|
5 |
Requires at least: 3.0.1
|
6 |
Requires PHP: 5.3
|
7 |
-
Tested up to:
|
8 |
-
Stable tag: 1.7.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -171,12 +171,18 @@ Yes. There is no limit to create temporary logins. You can create as many tempor
|
|
171 |
|
172 |
== Upgrade Notice ==
|
173 |
|
174 |
-
= 1.7.
|
175 |
|
176 |
-
* Update: WordPress
|
|
|
177 |
|
178 |
== Changelog ==
|
179 |
|
|
|
|
|
|
|
|
|
|
|
180 |
**1.7.2 [2022-02-15]**
|
181 |
|
182 |
* Update: WordPress 5.9 compatibility check
|
4 |
Tags: temporary access, developer access, passwordless login, magic pin, secure login
|
5 |
Requires at least: 3.0.1
|
6 |
Requires PHP: 5.3
|
7 |
+
Tested up to: 6.0.0
|
8 |
+
Stable tag: 1.7.3
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
171 |
|
172 |
== Upgrade Notice ==
|
173 |
|
174 |
+
= 1.7.3 =
|
175 |
|
176 |
+
* Update: WordPress 6.0 compatibility check
|
177 |
+
* Fix: Prevent extra css from loading on non plugin page
|
178 |
|
179 |
== Changelog ==
|
180 |
|
181 |
+
**1.7.3 [2022-07-05]**
|
182 |
+
|
183 |
+
* Update: WordPress 6.0.0 compatibility check
|
184 |
+
* Fix: Prevent extra css from loading on non plugin page
|
185 |
+
|
186 |
**1.7.2 [2022-02-15]**
|
187 |
|
188 |
* Update: WordPress 5.9 compatibility check
|
temporary-login-without-password.php
CHANGED
@@ -3,11 +3,11 @@
|
|
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.7.
|
7 |
* Author: StoreApps
|
8 |
* Author URI: https://www.storeapps.org
|
9 |
* Requires at least: 3.0.1
|
10 |
-
* Tested up to:
|
11 |
* License: GPLv3
|
12 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
* Text Domain: temporary-login-without-password
|
@@ -25,7 +25,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
25 |
/**
|
26 |
* Define constants
|
27 |
*/
|
28 |
-
define( 'WTLWP_PLUGIN_VERSION', '1.7.
|
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.7.3
|
7 |
* Author: StoreApps
|
8 |
* Author URI: https://www.storeapps.org
|
9 |
* Requires at least: 3.0.1
|
10 |
+
* Tested up to: 6.0.0
|
11 |
* License: GPLv3
|
12 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
* Text Domain: temporary-login-without-password
|
25 |
/**
|
26 |
* Define constants
|
27 |
*/
|
28 |
+
define( 'WTLWP_PLUGIN_VERSION', '1.7.3' );
|
29 |
define( 'WTLWP_FEEDBACK_VERSION', '1.2.4' );
|
30 |
define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
|
31 |
define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
|