Making WordPress.org


Ignore:
Timestamp:
02/12/2019 09:44:06 PM (6 years ago)
Author:
coffee2code
Message:

WordPress.tv: Update URLs to HTTPS where possible.

Props mitraval192, coffee2code.
See #3120.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php

    r8228 r8230  
    237237         *
    238238         * This method was disabled because it caused 504 errors on large result sets
    239          * (e.g., http://wordpress.tv/?s=keynote). Sorting by a meta value is not performant.
     239         * (e.g., https://wordpress.tv/?s=keynote). Sorting by a meta value is not performant.
    240240         *
    241241         * Maybe look at ways to do the sorting in PHP, or just use Elasticsearch instead.
     
    512512                preg_match( '/id=([0-9]+).*/', $code, $matches );
    513513                $id    = $matches[1];
    514                 $ssxml = file_get_contents( 'http://www.slideshare.net/api/2/get_slideshow/?slideshow_id=' . $id . '&api_key=sM0rzJvp&ts=' . time() . '&hash=' . sha1( 'vHs2uii6' . time() ) );
     514                $ssxml = file_get_contents( 'https://www.slideshare.net/api/2/get_slideshow/?slideshow_id=' . $id . '&api_key=sM0rzJvp&ts=' . time() . '&hash=' . sha1( 'vHs2uii6' . time() ) );
    515515                preg_match( '/<ThumbnailURL>(.+)<\/ThumbnailURL>/', $ssxml, $matches );
    516516                $image = $matches[1];
     
    580580            preg_match( '/id=([0-9]+).*/', $code, $matches );
    581581            $id    = $matches[1];
    582             $url   = 'http://www.slideshare.net/api/2/get_slideshow/?slideshow_id=' . $id . '&api_key=sM0rzJvp&ts=' . time() . '&hash=' . sha1( 'vHs2uii6' . time() );
     582            $url   = 'https://www.slideshare.net/api/2/get_slideshow/?slideshow_id=' . $id . '&api_key=sM0rzJvp&ts=' . time() . '&hash=' . sha1( 'vHs2uii6' . time() );
    583583            $ssxml = wp_remote_retrieve_body( wp_remote_get( esc_url_raw( $url ) ) );
    584584            preg_match( '/<ThumbnailURL>(.+)<\/ThumbnailURL>/', $ssxml, $matches );
     
    892892 * with a non-breaking space.
    893893 *
    894  * @link http://www.shauninman.com/post/heap/2006/08/22/widont_wordpress_plugin Typesetting widows
     894 * @link https://www.shauninman.com/post/heap/2006/08/22/widont_wordpress_plugin Typesetting widows
    895895 *
    896896 * @param string $str Optional. String to operate on.
Note: See TracChangeset for help on using the changeset viewer.