File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed
Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 1+ setTimeout ( function ( ) {
2+ document . getElementById ( 'sso_form' ) . submit ( ) ;
3+ } , 100 ) ;
Original file line number Diff line number Diff line change @@ -670,15 +670,14 @@ function cross_site_sso_redirect( $url ) {
670670 do_action ( 'wpsimplesaml_cross_sso_form_inputs ' );
671671 ?>
672672 </form>
673- <?php // @codingStandardsIgnoreEnd ?>
674-
675- <script>
676- setTimeout( function () {
677- document.getElementById( 'sso_form' ).submit();
678- }, 100 );
679- </script>
680-
681- <?php
673+ <?php
674+ wp_enqueue_script (
675+ 'wp-simple-saml-csr ' ,
676+ plugins_url ( '/assets/csr.js ' , PLUGIN_FILE ),
677+ [],
678+ null
679+ );
680+ print_footer_scripts ();
682681 exit ;
683682}
684683
Original file line number Diff line number Diff line change 3131
3232use WP_CLI ;
3333
34+ const PLUGIN_FILE = __FILE__ ;
35+
3436require_once __DIR__ . '/inc/namespace.php ' ;
3537require_once __DIR__ . '/inc/admin/namespace.php ' ;
3638
You can’t perform that action at this time.
0 commit comments