Skip to content

Commit e553009

Browse files
committed
use the saml_validate_config filter
1 parent 70e8ca7 commit e553009

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

onelogin-saml-sso/php/configuration.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
function onelogin_saml_configuration_render() {
1515
$title = __("SSO/SAML Settings", 'onelogin-saml-sso');
1616
$saml_metadata = apply_filters( 'onelogin_saml_metadata', 'saml_metadata' );
17+
$saml_validate_config = apply_filters( 'onelogin_saml_validate_config', 'saml_validate_config' );
1718
?>
1819
<div class="wrap">
1920
<?php screen_icon(); ?>
@@ -22,7 +23,7 @@ function onelogin_saml_configuration_render() {
2223
</div>
2324
<div class="alignright">
2425
<a href="<?php echo get_site_url( null, '/wp-login.php?' . $saml_metadata ); ?>" target="blank"><?php echo __("Go to the metadata of this SP", 'onelogin-saml-sso');?></a><br>
25-
<a href="<?php echo get_site_url().'/wp-login.php?saml_validate_config'; ?>" target="blank"><?php echo __("Once configured, validate here your OneLogin SSO/SAML Settings", 'onelogin-saml-sso');?></a>
26+
<a href="<?php echo get_site_url( null, '/wp-login.php?' . $saml_validate_config ); ?>" target="blank"><?php echo __("Once configured, validate here your OneLogin SSO/SAML Settings", 'onelogin-saml-sso');?></a>
2627
</div>
2728
<div style="clear:both"></div>
2829
<h2><?php echo esc_html( $title ); ?></h2>

0 commit comments

Comments
 (0)