Changeset 10664
- Timestamp:
- 02/12/2021 12:44:14 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php
r10336 r10664 37 37 38 38 $screenshot = get_post_meta($post->ID, 'screenshot', true); 39 40 $prefix = is_ssl() ? 'https://' : 'http://s.'; 39 41 40 if ( empty( $screenshot ) ) { 41 $prefix = is_ssl() ? 'https://' : 'http://s.'; 42 42 $screenshot = $prefix.'wordpress.com/mshots/v1/http%3A%2F%2F' . get_site_domain( true, false ); 43 } 44 45 if ( '' != $width ) { 43 } elseif ( function_exists( 'jetpack_photon_url' ) ) { 44 $screenshot = jetpack_photon_url( $screenshot ); 45 } 46 47 if ( $width ) { 46 48 $screenshot = add_query_arg( 'w', $width, $screenshot); 47 49 }
Note: See TracChangeset
for help on using the changeset viewer.