Make WordPress Core

Changeset 62521


Ignore:
Timestamp:
06/18/2026 02:04:14 AM (2 months ago)
Author:
westonruter
Message:

Embeds: Replace the blue site icon fallback with the gray WordPress logo.

Adds gray WordPress logo image files (w-logo-gray-white-bg.png and w-logo-gray-white-bg.svg) to wp-includes/images/, and updates the_embed_site_title() and do_favicon() to use the new images as the fallback site icon, maintaining visual consistency with the login screen logo updated in r61989.

Replaces CSS custom property references for focus styles in the embed template (--wp-admin-theme-color and --wp-admin-border-width-focus) with their literal values, as these admin-theme variables are not defined in the oEmbed template context.

Developed in https://github.com/WordPress/wordpress-develop/pull/11293.
Follow-up to r61652, r61989, r62502.

Props sabernhardt, huzaifaalmesbah, westonruter, jamesbregenzer.
See #64708.
Fixes #64877.

Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/wp-embed-template.css

    r61652 r62521  
    218218.wp-embed-share-dialog-open:focus .dashicons,
    219219.wp-embed-share-dialog-close:focus .dashicons {
    220         box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
     220        box-shadow: 0 0 0 1.5px #3858e9;
    221221        /* Only visible in Windows High Contrast mode */
    222222        outline: 2px solid transparent;
  • trunk/src/wp-includes/embed.php

    r62502 r62521  
    12341234 */
    12351235function the_embed_site_title(): void {
    1236         $fallback_icon_url = includes_url( 'images/w-logo-blue.png' );
     1236        $fallback_icon_url = includes_url( 'images/w-logo-gray-white-bg.svg' );
    12371237        $site_icon_url     = get_site_icon_url( 32, $fallback_icon_url );
    12381238
  • trunk/src/wp-includes/functions.php

    r62497 r62521  
    17531753        do_action( 'do_faviconico' );
    17541754
    1755         wp_redirect( get_site_icon_url( 32, includes_url( 'images/w-logo-blue-white-bg.png' ) ) );
     1755        wp_redirect( get_site_icon_url( 32, includes_url( 'images/w-logo-gray-white-bg.png' ) ) );
    17561756        exit;
    17571757}
  • trunk/tests/phpunit/tests/general/template.php

    r62502 r62521  
    861861                $output = get_echo( 'the_embed_site_title' );
    862862
    863                 $fallback  = includes_url( 'images/w-logo-blue.png' );
     863                $fallback  = includes_url( 'images/w-logo-gray-white-bg.svg' );
    864864                $processor = new WP_HTML_Tag_Processor( $output );
    865865
     
    915915        public function test_the_embed_site_title_uses_fallback_without_srcset_when_no_site_icon_set(): void {
    916916                $output   = get_echo( 'the_embed_site_title' );
    917                 $fallback = includes_url( 'images/w-logo-blue.png' );
     917                $fallback = includes_url( 'images/w-logo-gray-white-bg.svg' );
    918918
    919919                $processor = new WP_HTML_Tag_Processor( $output );
Note: See TracChangeset for help on using the changeset viewer.