Skip to content

Commit

Permalink
Merge pull request #43 from humanmade/backport-39-to-v7-branch
Browse files Browse the repository at this point in the history
[Backport v7-branch] Only define auth login text if it's not set
  • Loading branch information
roborourke authored Apr 20, 2021
2 parents 0129437 + ddae925 commit 0969bd4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inc/wordpress/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ function load_plugin() {
define( 'HM_DELEGATED_AUTH_CLIENT_ID', $config['oauth2-client-id'] );
}

define( 'HM_DELEGATED_AUTH_LOGIN_TEXT', __( 'Login with WordPress SSO', 'altis' ) );
if ( ! defined( 'HM_DELEGATED_AUTH_LOGIN_TEXT' ) ) {
define( 'HM_DELEGATED_AUTH_LOGIN_TEXT', __( 'Login with WordPress SSO', 'altis' ) );
}

add_filter( 'delegated_oauth.sync-roles', ( empty( $config['sync-roles'] ) || ! $config['sync-roles'] ) ? '__return_false' : '__return_true' );

require_once Altis\ROOT_DIR . '/vendor/humanmade/delegated-oauth/plugin.php';
Expand Down

0 comments on commit 0969bd4

Please sign in to comment.