File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ function wp_auth0_filter_login_override_url( $wp_login_url ) {
635
635
*/
636
636
function wp_auth0_filter_login_override_form () {
637
637
if ( wp_auth0_can_show_wp_login_form () && isset ( $ _REQUEST ['wle ' ] ) ) {
638
- $ wle_encoded = esc_attr ($ _REQUEST ['wle ' ]);
638
+ $ wle_encoded = esc_attr ( $ _REQUEST ['wle ' ] );
639
639
printf ( '<input type="hidden" name="wle" value="%s" /> ' , $ wle_encoded );
640
640
}
641
641
}
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public function testThatLanguageDictIsBlankIfInvalidJson() {
101
101
public function testThatLanguageDictIsPreviousValIfInvalidJson () {
102
102
$ validated = self ::$ admin ->basic_validation (
103
103
[ 'language_dictionary ' => '{"previous":"value"} ' ],
104
- [ 'language_dictionary ' => uniqid () ]
104
+ [ 'language_dictionary ' => ' {"new":value"} ' ]
105
105
);
106
106
$ this ->assertEquals ( '{"previous":"value"} ' , $ validated ['language_dictionary ' ] );
107
107
Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ public function testThatWidgetIdIsCorrect() {
34
34
public function testThatInvalidDictJsonIsRevertedToPreviousValue () {
35
35
$ widget = new WP_Auth0_Embed_Widget ();
36
36
$ new_opts = [
37
- 'dict ' => uniqid () ,
37
+ 'dict ' => ' __test_new_value__ ' ,
38
38
'extra_conf ' => '' ,
39
39
];
40
- $ old_opts = [ 'dict ' => uniqid () ];
40
+ $ old_opts = [ 'dict ' => ' __test_old_value__ ' ];
41
41
$ validated = $ widget ->update ( $ new_opts , $ old_opts );
42
42
43
- $ this ->assertEquals ( $ old_opts [ ' dict ' ] , $ validated ['dict ' ] );
43
+ $ this ->assertEquals ( ' __test_old_value__ ' , $ validated ['dict ' ] );
44
44
}
45
45
46
46
public function testThatEmptyDictJsonIsAccepted () {
You can’t perform that action at this time.
0 commit comments