Skip to content

Commit 7832864

Browse files
committed
fix(site): improve if condition
1 parent 608a149 commit 7832864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helper/class-ee-site.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ public function ssl_info( $args, $assoc_args ) {
17801780
if ( method_exists( $challenge, 'toArray' ) ) {
17811781
$data = $challenge->toArray();
17821782
// Always use _acme-challenge.base-domain for wildcard domains
1783-
if ( strpos( $domain, '*.' ) === 0 ) {
1783+
if ( 0 === strpos( $domain, '*.' ) ) {
17841784
$base_domain = substr( $domain, 2 );
17851785
$record_name = '_acme-challenge.' . $base_domain;
17861786
} else {

0 commit comments

Comments
 (0)