Skip to content

Commit f810cfc

Browse files
authored
Update force-https.php
1 parent b2caa48 commit f810cfc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

force-https.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ function force_https_securize_url( $value ) {
7474
add_filter( 'embed_oembed_html', 'force_https_securize_url', 10 );
7575
add_filter( 'get_avatar_url', 'force_https_securize_url', 10 );
7676
add_filter( 'get_custom_logo', 'force_https_securize_url', 10 );
77+
add_filter( 'get_the_permalink', 'force_https_securize_url', 10 );
7778
add_filter( 'includes_url', 'force_https_securize_url', 10 );
7879
add_filter( 'login_redirect', 'force_https_securize_url', 10 );
7980
add_filter( 'logout_redirect', 'force_https_securize_url', 10 );
@@ -86,6 +87,7 @@ function force_https_securize_url( $value ) {
8687
add_filter( 'rest_url', 'force_https_securize_url', 10 );
8788
add_filter( 'tag_link', 'force_https_securize_url', 10 );
8889
add_filter( 'term_link', 'force_https_securize_url', 10 );
90+
add_filter( 'wc_get_endpoint_url', 'force_https_securize_url', 10 );
8991
add_filter( 'woocommerce_account_endpoint_url', 'force_https_securize_url', 10 );
9092
add_filter( 'wp_get_attachment_url', 'force_https_securize_url', 10 );
9193

@@ -128,7 +130,7 @@ function( $matches ) {
128130
}
129131

130132
// enforce https for wp resource hints
131-
add_filter( 'wp_resource_hints', 'force_https_fix_resource_hints', 999 );
133+
add_filter( 'wp_resource_hints', 'force_https_fix_resource_hints', 20 );
132134
function force_https_fix_resource_hints( $urls ) {
133135
if ( ! is_array( $urls ) ) {
134136
return $urls;

0 commit comments

Comments
 (0)