@@ -70,28 +70,30 @@ function force_https_securize_url( $value ) {
7070}
7171
7272// apply https to all relevant wordpress filters
73+ add_filter ( 'admin_url ' , 'force_https_securize_url ' , 999 );
74+ add_filter ( 'do_shortcode_tag ' , 'force_https_securize_url ' , 999 );
75+ add_filter ( 'embed_oembed_html ' , 'force_https_securize_url ' , 999 );
76+ add_filter ( 'get_avatar_url ' , 'force_https_securize_url ' , 999 );
77+ add_filter ( 'get_custom_logo ' , 'force_https_securize_url ' , 999 );
7378add_filter ( 'home_url ' , 'force_https_securize_url ' , 999 );
74- add_filter ( 'site_url ' , 'force_https_securize_url ' , 999 );
75- add_filter ( 'network_site_url ' , 'force_https_securize_url ' , 999 );
79+ add_filter ( 'includes_url ' , 'force_https_securize_url ' , 999 );
80+ add_filter ( 'login_redirect ' , 'force_https_securize_url ' , 999 );
81+ add_filter ( 'logout_redirect ' , 'force_https_securize_url ' , 999 );
7682add_filter ( 'network_home_url ' , 'force_https_securize_url ' , 999 );
77- add_filter ( 'post_link ' , 'force_https_securize_url ' , 999 );
83+ add_filter ( 'network_site_url ' , 'force_https_securize_url ' , 999 );
7884add_filter ( 'page_link ' , 'force_https_securize_url ' , 999 );
79- add_filter ( 'term_link ' , 'force_https_securize_url ' , 999 );
80- add_filter ( 'template_directory_uri ' , 'force_https_securize_url ' , 999 );
81- add_filter ( 'stylesheet_directory_uri ' , 'force_https_securize_url ' , 999 );
85+ add_filter ( 'post_link ' , 'force_https_securize_url ' , 999 );
86+ add_filter ( 'rest_url ' , 'force_https_securize_url ' , 999 );
8287add_filter ( 'script_loader_src ' , 'force_https_securize_url ' , 999 );
88+ add_filter ( 'site_url ' , 'force_https_securize_url ' , 999 );
89+ add_filter ( 'stylesheet_directory_uri ' , 'force_https_securize_url ' , 999 );
8390add_filter ( 'style_loader_src ' , 'force_https_securize_url ' , 999 );
84- add_filter ( 'wp_get_attachment_url ' , 'force_https_securize_url ' , 999 );
85- add_filter ( 'get_avatar_url ' , 'force_https_securize_url ' , 999 );
86- add_filter ( 'rest_url ' , 'force_https_securize_url ' , 999 );
87- add_filter ( 'wp_redirect ' , 'force_https_securize_url ' , 999 );
88- add_filter ( 'login_redirect ' , 'force_https_securize_url ' , 999 );
89- add_filter ( 'logout_redirect ' , 'force_https_securize_url ' , 999 );
90- add_filter ( 'embed_oembed_html ' , 'force_https_securize_url ' , 999 );
91- add_filter ( 'do_shortcode_tag ' , 'force_https_securize_url ' , 999 );
91+ add_filter ( 'template_directory_uri ' , 'force_https_securize_url ' , 999 );
92+ add_filter ( 'term_link ' , 'force_https_securize_url ' , 999 );
9293add_filter ( 'widget_text ' , 'force_https_securize_url ' , 999 );
9394add_filter ( 'widget_text_content ' , 'force_https_securize_url ' , 999 );
94- add_filter ( 'get_custom_logo ' , 'force_https_securize_url ' , 999 );
95+ add_filter ( 'wp_get_attachment_url ' , 'force_https_securize_url ' , 999 );
96+ add_filter ( 'wp_redirect ' , 'force_https_securize_url ' , 999 );
9597
9698// force https on all elements and attributes with urls
9799add_filter ( 'the_content ' , 'force_https_process_content ' , 20 );
0 commit comments