Making WordPress.org

Changeset 6954


Ignore:
Timestamp:
03/28/2018 05:22:25 AM (8 years ago)
Author:
tellyworth
Message:

Showcase: don't break when the site URL is https.

More work is needed to properly support https urls, but this prevents it from breaking entirely.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php

    r6282 r6954  
    1212        $domain = substr( $domain, 0, strlen( $domain ) - 1 );
    1313
    14     if ( false !== strpos( $domain, 'http://' ) )
    15         $domain = substr( $domain, 7 );
     14    #if ( false !== strpos( $domain, 'http://' ) )
     15    #   $domain = substr( $domain, 7 );
     16    $domain = preg_replace( '#^https?://#i', '', $domain );
    1617    if ( $rep_slash )
    1718        $domain = str_replace('/', '%2F', $domain );
Note: See TracChangeset for help on using the changeset viewer.