Skip to content

Commit 395ef98

Browse files
committed
1 parent 2252903 commit 395ef98

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

onelogin-saml-sso/php/configuration.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ function onelogin_saml_configuration() {
4444
$helpText = '<p>' . __('This plugin provides single sign-on via SAML and gives users one-click access to their WordPress accounts from identity providers like OneLogin', 'onelogin-saml-sso') . '</p>' .
4545
'<p><strong>' . __('For more information', 'onelogin-saml-sso') . '</strong> '.__("access to the", 'onelogin-saml-sso').' <a href="https://onelogin.zendesk.com/hc/en-us/articles/201173454-Configuring-SAML-for-WordPress" target="_blank">'.__("Plugin Info", 'onelogin-saml-sso').'</a> ' .
4646
__("or visit", 'onelogin-saml-sso') . ' <a href="http://onelogin.com/" target="_blank">OneLogin, Inc.</a>' . '</p>';
47-
48-
if (function_exists('add_contextual_help')) {
49-
@add_contextual_help($current_screen, $helpText);
50-
}
5147

48+
$current_screen = convert_to_screen($current_screen);
49+
WP_Screen::add_old_compat_help($current_screen, $helpText);
50+
5251
$option_group = 'onelogin_saml_configuration';
5352

5453
add_settings_section('idp', __('IDENTITY PROVIDER SETTINGS', 'onelogin-saml-sso'), 'plugin_section_idp_text', $option_group);

0 commit comments

Comments
 (0)