diff --git wp-includes/media.php wp-includes/media.php
index 249e685..39aee15 100644
|
|
function wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon |
763 | 763 | } |
764 | 764 | |
765 | 765 | if ( $src && $width && $height ) { |
| 766 | $src = set_url_scheme( $src ); |
766 | 767 | $image = array( $src, $width, $height ); |
767 | 768 | } |
768 | 769 | } |
… |
… |
function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attac |
1156 | 1157 | $srcset = ''; |
1157 | 1158 | |
1158 | 1159 | foreach ( $sources as $source ) { |
1159 | | $srcset .= $source['url'] . ' ' . $source['value'] . $source['descriptor'] . ', '; |
| 1160 | $srcset .= set_url_scheme( $source['url'] ) . ' ' . $source['value'] . $source['descriptor'] . ', '; |
1160 | 1161 | } |
1161 | 1162 | |
1162 | 1163 | return rtrim( $srcset, ', ' ); |
diff --git wp-includes/post.php wp-includes/post.php
index bb7e37a..5507b15 100644
|
|
function wp_get_attachment_url( $post_id = 0 ) { |
4980 | 4980 | $url = get_the_guid( $post->ID ); |
4981 | 4981 | } |
4982 | 4982 | |
4983 | | // On SSL front-end, URLs should be HTTPS. |
4984 | | if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $GLOBALS['pagenow'] ) { |
4985 | | $url = set_url_scheme( $url ); |
4986 | | } |
| 4983 | // Always check if HTTPS should be set |
| 4984 | $url = set_url_scheme( $url ); |
4987 | 4985 | |
4988 | 4986 | /** |
4989 | 4987 | * Filter the attachment URL. |