Ticket #19420: blog-perma-set-url-scheme.diff

File blog-perma-set-url-scheme.diff, 455 bytes (added by wonderboymusic, 8 months ago)
Line 
1Index: wp-includes/ms-functions.php
2===================================================================
3--- wp-includes/ms-functions.php        (revision 21840)
4+++ wp-includes/ms-functions.php        (working copy)
5@@ -314,7 +314,7 @@
6  */
7 function get_blog_permalink( $blog_id, $post_id ) {
8        switch_to_blog( $blog_id );
9-       $link = get_permalink( $post_id );
10+       $link = set_url_scheme( get_permalink( $post_id ) , 'http' );
11        restore_current_blog();
12 
13        return $link;