WordPress.org

Make WordPress Core

Ticket #19420: 19420.diff

File 19420.diff, 541 bytes (added by mdawaffe, 6 years ago)
  • wp-includes/ms-functions.php

     
    323323        if ( $link == false ) {
    324324                switch_to_blog( $_blog_id );
    325325                $link = get_permalink( $post_id );
     326                $link = str_replace( 'https://', 'http://', $link );
    326327                restore_current_blog();
    327328                wp_cache_add( $key, $link, 'site-options', 360 );
    328329        }
    329         return $link;
     330        return apply_filters( 'get_blog_permalink', $link );
    330331}
    331332
    332333/**