@@ -130,6 +130,9 @@ discard block |
||
130 | 130 | return self::get_protocol_normalized_url( 'main_network_site_url', network_site_url() ); |
131 | 131 | } |
132 | 132 | |
133 | + /** |
|
134 | + * @param string $callable |
|
135 | + */ |
|
133 | 136 | public static function get_protocol_normalized_url( $callable, $new_value ) { |
134 | 137 | $option_key = self::HTTPS_CHECK_OPTION_PREFIX . $callable; |
135 | 138 | |
@@ -152,6 +155,9 @@ discard block |
||
152 | 155 | return set_url_scheme( $new_value, $forced_scheme ); |
153 | 156 | } |
154 | 157 | |
158 | + /** |
|
159 | + * @param string $option_name |
|
160 | + */ |
|
155 | 161 | public static function get_raw_url( $option_name ) { |
156 | 162 | global $wpdb; |
157 | 163 | |
@@ -182,6 +188,10 @@ discard block |
||
182 | 188 | return $value; |
183 | 189 | } |
184 | 190 | |
191 | + /** |
|
192 | + * @param string $option |
|
193 | + * @param string $url_function |
|
194 | + */ |
|
185 | 195 | public static function normalize_www_in_url( $option, $url_function ) { |
186 | 196 | $url = wp_parse_url( call_user_func( $url_function ) ); |
187 | 197 | $option_url = wp_parse_url( get_option( $option ) ); |