- Timestamp:
- 02/12/2019 09:44:06 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php
r8228 r8230 237 237 * 238 238 * 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. 240 240 * 241 241 * Maybe look at ways to do the sorting in PHP, or just use Elasticsearch instead. … … 512 512 preg_match( '/id=([0-9]+).*/', $code, $matches ); 513 513 $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() ) ); 515 515 preg_match( '/<ThumbnailURL>(.+)<\/ThumbnailURL>/', $ssxml, $matches ); 516 516 $image = $matches[1]; … … 580 580 preg_match( '/id=([0-9]+).*/', $code, $matches ); 581 581 $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() ); 583 583 $ssxml = wp_remote_retrieve_body( wp_remote_get( esc_url_raw( $url ) ) ); 584 584 preg_match( '/<ThumbnailURL>(.+)<\/ThumbnailURL>/', $ssxml, $matches ); … … 892 892 * with a non-breaking space. 893 893 * 894 * @link http ://www.shauninman.com/post/heap/2006/08/22/widont_wordpress_plugin Typesetting widows894 * @link https://www.shauninman.com/post/heap/2006/08/22/widont_wordpress_plugin Typesetting widows 895 895 * 896 896 * @param string $str Optional. String to operate on.
Note: See TracChangeset
for help on using the changeset viewer.