Skip to content

Commit 770c41d

Browse files
authored
Update force-https.php
1 parent bc193d9 commit 770c41d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

force-https.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ function force_https_securize_url( $value ) {
108108

109109
// enforce https on html content that may contain urls
110110
function force_https_filter_output( $content ) {
111-
// return unchanged if not a string or does not contain http
112-
if ( ! is_string( $content ) || strpos( $content, 'http://' ) === false ) {
111+
// return unchanged if not a string
112+
if ( ! is_string( $content ) ) {
113113
return $content;
114114
}
115115

0 commit comments

Comments
 (0)