Skip to content

Commit

Permalink
Properly space these
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeselander committed Sep 17, 2018
1 parent de8ea84 commit 7b4cce3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions class.two-factor-force.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public static function maybe_display_2fa_settings() {
$url = admin_url();

if ( isset( $_GET['redirect_to'] ) ) {
//phpcs:ignore This IS the proper sanitization for URLs.
// phpcs:ignore This IS the proper sanitization for URLs.
$url = esc_url_raw( urldecode( $_GET['redirect_to'] ) );
}

Expand Down Expand Up @@ -398,7 +398,7 @@ public static function save_network_force_two_factor_update() {
check_admin_referer( 'force_two_factor_options', '_nonce_force_two_factor_options' );

// Validate and save universally forced key.
//phpcs:ignore The value from $_POST is not saved, only 1 or 0 can be.
// phpcs:ignore The value from $_POST is not saved, only 1 or 0 can be.
if ( isset( $_POST[ self::FORCED_SITE_META_KEY ] ) && $_POST[ self::FORCED_SITE_META_KEY ] ) {
update_site_option( self::FORCED_SITE_META_KEY, 1 );
} else {
Expand All @@ -414,7 +414,7 @@ public static function save_network_force_two_factor_update() {
}

// Whitelist roles against valid WordPress role slugs.
//phpcs:ignore Our validation method below only accepts whitelisted strings from `editable_roles`.
// phpcs:ignore Our validation method below only accepts whitelisted strings from `editable_roles`.
$roles = self::validate_forced_roles( $_POST[ self::FORCED_ROLES_META_KEY ] );

update_site_option( self::FORCED_ROLES_META_KEY, $roles );
Expand Down

0 comments on commit 7b4cce3

Please sign in to comment.