Skip to content

Commit

Permalink
Remove inline comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Debarghya-Banerjee committed Oct 23, 2024
1 parent 798a010 commit 289744a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6246,9 +6246,8 @@ function force_ssl_admin( $force = null ) {
static $forced = false;

if ( ! is_null( $force ) ) {
// Check if $force is a boolean, typecast to boolean if it's not.
$old_forced = $forced;
$forced = (bool) $force; // Always cast to boolean.
$forced = (bool) $force;
return $old_forced;
}

Expand Down

0 comments on commit 289744a

Please sign in to comment.