Making WordPress.org

Changeset 11501


Ignore:
Timestamp:
02/02/2022 02:49:00 AM (2 years ago)
Author:
dd32
Message:

Showcase: Properly define dashicons as a dependency for the showcase stylesheet.

The showcase was previously assuming that the header would always include dashicons automatically, but it's only enqueued automatically now when logged in.

Bonus: Some old non-SSL code was removed. Everything is SSL'd now.

Fixes #6073.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase
Files:
2 edited

Legend:

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

    r11431 r11501  
    4242   
    4343    if ( empty( $screenshot ) ) {
    44         $prefix = is_ssl() ? 'https://' : 'http://s.';
    45         $screenshot = $prefix.'wordpress.com/mshots/v1/http%3A%2F%2F' . get_site_domain( true, false );
     44        $screenshot = 'https://wordpress.com/mshots/v1/http%3A%2F%2F' . get_site_domain( true, false );
    4645    } elseif ( function_exists( 'jetpack_photon_url' ) ) {
    4746        $screenshot = jetpack_photon_url( $screenshot );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/header.php

    r11496 r11501  
    55echo do_blocks( '<!-- wp:wporg/global-header /-->' );
    66
    7 $prefix = is_ssl() ? 'https://' : 'http://s.';
    8 wp_enqueue_style( 'blog-wp4', $prefix.'wordpress.org/style/blog-wp4.css', array(), 4 );
    9 wp_enqueue_style( 'showcase', get_stylesheet_uri(), array(), 20 );
     7wp_enqueue_style( 'blog-wp4', 'https://wordpress.org/style/blog-wp4.css', array(), 4 );
     8wp_enqueue_style( 'showcase', get_stylesheet_uri(), array( 'dashicons' ), 20 );
    109
    1110?>
Note: See TracChangeset for help on using the changeset viewer.