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 ) {
635635 */
636636function wp_auth0_filter_login_override_form () {
637637 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 ' ] );
639639 printf ( '<input type="hidden" name="wle" value="%s" /> ' , $ wle_encoded );
640640 }
641641}
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public function testThatLanguageDictIsBlankIfInvalidJson() {
101101 public function testThatLanguageDictIsPreviousValIfInvalidJson () {
102102 $ validated = self ::$ admin ->basic_validation (
103103 [ 'language_dictionary ' => '{"previous":"value"} ' ],
104- [ 'language_dictionary ' => uniqid () ]
104+ [ 'language_dictionary ' => ' {"new":value"} ' ]
105105 );
106106 $ this ->assertEquals ( '{"previous":"value"} ' , $ validated ['language_dictionary ' ] );
107107
Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ public function testThatWidgetIdIsCorrect() {
3434 public function testThatInvalidDictJsonIsRevertedToPreviousValue () {
3535 $ widget = new WP_Auth0_Embed_Widget ();
3636 $ new_opts = [
37- 'dict ' => uniqid () ,
37+ 'dict ' => ' __test_new_value__ ' ,
3838 'extra_conf ' => '' ,
3939 ];
40- $ old_opts = [ 'dict ' => uniqid () ];
40+ $ old_opts = [ 'dict ' => ' __test_old_value__ ' ];
4141 $ validated = $ widget ->update ( $ new_opts , $ old_opts );
4242
43- $ this ->assertEquals ( $ old_opts [ ' dict ' ] , $ validated ['dict ' ] );
43+ $ this ->assertEquals ( ' __test_old_value__ ' , $ validated ['dict ' ] );
4444 }
4545
4646 public function testThatEmptyDictJsonIsAccepted () {
You can’t perform that action at this time.
0 commit comments