Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wp-includes/css/wp-embed-template.css
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ p.wp-embed-heading {

.wp-embed-share-dialog-open:focus .dashicons,
.wp-embed-share-dialog-close:focus .dashicons {
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
box-shadow: 0 0 0 1.5px #3858e9;
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
border-radius: 100%;
Expand Down
4 changes: 2 additions & 2 deletions src/wp-includes/embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -1233,8 +1233,8 @@ function the_embed_site_title() {
$site_title = sprintf(
'<a href="%s" target="_top"><img src="%s" srcset="%s 2x" width="32" height="32" alt="" class="wp-embed-site-icon" /><span>%s</span></a>',
esc_url( home_url() ),
esc_url( get_site_icon_url( 32, includes_url( 'images/w-logo-blue.png' ) ) ),
esc_url( get_site_icon_url( 64, includes_url( 'images/w-logo-blue.png' ) ) ),
esc_url( get_site_icon_url( 32, includes_url( 'images/w-logo-gray-white-bg.png' ) ) ),
esc_url( get_site_icon_url( 64, includes_url( 'images/w-logo-gray-white-bg.png' ) ) ),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we take this as an opportunity to use the SVG logo instead? This was added to wp-admin recently: https://github.com/WordPress/wordpress-develop/blob/1afbc8ae29e1be0d466182bc74a0c5261b60a70f/src/wp-admin/images/wordpress-logo-gray.svg

Copy link
Copy Markdown
Author

@sabernhardt sabernhardt Mar 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the image I used to create the PNG 😉
though I added a white <circle> for the background:

<circle fill="#ffffff" cx="32" cy="32" r="32"/>

Adding the (modified) SVG in wp-includes/images works when calling it in the embed template.
<img src="http://localhost/dev/src/wp-includes/images/w-logo-gray-white-bg.svg" srcset="http://localhost/dev/src/wp-includes/images/w-logo-gray-white-bg.svg 2x" width="32" height="32" alt="" class="wp-embed-site-icon">

I'm not entirely convinced it should be SVG, but if not, my last commit can be reverted to keep the PNG there.

esc_html( get_bloginfo( 'name' ) )
);

Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,7 @@ function do_favicon() {
*/
do_action( 'do_faviconico' );

wp_redirect( get_site_icon_url( 32, includes_url( 'images/w-logo-blue-white-bg.png' ) ) );
wp_redirect( get_site_icon_url( 32, includes_url( 'images/w-logo-gray-white-bg.png' ) ) );
exit;
}

Expand Down
Binary file added src/wp-includes/images/w-logo-gray-white-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading