Exemplo n.º 1
0
    /**
     * Builds the display for the checkbox allowing the user to allow matching logins by email
     * Displays in Settings > General
     *
     * @since 2.9
     **/
    public function render_match_by_email()
    {
        ?>
			<label>
				<input
					type="checkbox"
					name="jetpack_sso_match_by_email"
					<?php 
        checked(Jetpack_SSO_Helpers::match_by_email());
        ?>
					<?php 
        disabled(Jetpack_SSO_Helpers::is_match_by_email_checkbox_disabled());
        ?>
				>
				<?php 
        esc_html_e('Match by Email', 'jetpack');
        ?>
			</label>
		<?php 
    }
 function test_sso_helpers_match_by_email_enabled()
 {
     $this->assertFalse(Jetpack_SSO_Helpers::is_match_by_email_checkbox_disabled());
 }